A Test Runner in python, for Human Readable HTML Reports
Project description
HtmlTest runner is a unittest test runner that save test results in Html files, for human readable presentation of results.
This Package was inspired in unittest-xml-reporting and HtmlTestRunner by tungwaiyip.
Usage:
import HtmlTestRunner import unittest class TestStringMethods(unittest.TestCase): def test_upper(self): self.assertEqual('foo'.upper(), 'FOO') def test_error(self): """ This test should be marked as error one. """ raise ValueError def test_fail(self): """ This test should fail. """ self.assertEqual(1, 2) @unittest.skip("This is a skipped test.") def test_skip(self): """ This test should be skipped. """ pass if __name__ == '__main__': unittest.main(testRunner=HtmlTestRunner.HTMLTestRunner(output='example_dir'))
As simple as import the class an initialize it, it only have one request parameter that is output, this one is use to place the report in a sub direcotry in reports directory.
Links:
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size html_testRunner-1.2.1-py2.py3-none-any.whl (11.3 kB) | File type Wheel | Python version py2.py3 | Upload date | Hashes View |
Filename, size html-testRunner-1.2.1.tar.gz (534.4 kB) | File type Source | Python version None | Upload date | Hashes View |
Close
Hashes for html_testRunner-1.2.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57190df7b33788a148ff793cbcd1495ef51e265f8954e1d7c4318edc7bb636c3 |
|
MD5 | ee23b5b14410f9869d3ee2d4d3344852 |
|
BLAKE2-256 | 5e14456d48d6741c3cbbf170bf2a9c4f8075034baff4261819e8121d971e054e |