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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for allure_unittest-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5de833491d969cd81560f32380bb1e7f6de92ba08e61bb39ecc0fd86de9660ae |
|
MD5 | 70d16b5311737dfdc81f6e321a0d5f7a |
|
BLAKE2b-256 | 04ebc27893b93a458beb91d0b8c15ac7b335627768d4911380ce74ce2763ee17 |