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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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