Metadata-Version: 2.1
Name: allure-unittest
Version: 0.0.2
Summary: unittest Allure integration
Author-email: Sun Young <hu7433438@sohu.com>
Project-URL: Homepage, https://github.com/hu7433438/allure-unittest
Project-URL: Bug Tracker, https://github.com/hu7433438/allure-unittest/issues
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Programming Language :: Python :: 3
Classifier: Environment :: Plugins
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: BSD License
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: allure-python-commons

# allure-unittest

unittest Allure integration

```python
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)
```
