Skip to main content

unittest Allure integration

Project description

allure-unittest

unittest Allure integration

import unittest
from allure_unittest import Run


class Activity(unittest.TestCase):
    def test_1(self):
        self._testMethodDoc = "test 1 == 1"
        self.assertEqual(1, 1)

    def test_2(self):
        self._testMethodDoc = "test 1 == 2"
        self.assertEqual(1, 2)

    def test_3(self):
        self._testMethodDoc = "test 2 == 3"
        self.assertEqual(2, 3, "2 not Equal 3")


if __name__ == '__main__':
    c = unittest.defaultTestLoader.loadTestsFromTestCase(Activity)
    Run('test', c, clean=True)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

allure-unittest-0.0.2.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

allure_unittest-0.0.2-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file allure-unittest-0.0.2.tar.gz.

File metadata

  • Download URL: allure-unittest-0.0.2.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for allure-unittest-0.0.2.tar.gz
Algorithm Hash digest
SHA256 8dae3d63932fa99025e449f4f5864e8b20f673a8c9a97b15d3e3c01d888fd754
MD5 bc6af8d2b7521b45734c7463d8e6ac5b
BLAKE2b-256 57d09533192c4f318b9f84755b78ce2de1f884bf652b70d4f839161adabe8d70

See more details on using hashes here.

Provenance

File details

Details for the file allure_unittest-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for allure_unittest-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5de833491d969cd81560f32380bb1e7f6de92ba08e61bb39ecc0fd86de9660ae
MD5 70d16b5311737dfdc81f6e321a0d5f7a
BLAKE2b-256 04ebc27893b93a458beb91d0b8c15ac7b335627768d4911380ce74ce2763ee17

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page