A Test Runner in python, for Human Readable HTML Reports
Project description
NOTE: This Package fork by html-testRunner==1.2.1 and fixed some bug. if html-testRunner release the new version, you should reinstall it pip install html-testRunner -U
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
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
html-testRunner-df-1.2.2.dev4.tar.gz
(536.7 kB
view hashes)
Built Distribution
Close
Hashes for html-testRunner-df-1.2.2.dev4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88cef99409558b85e64ab82cfe7448f6590424591718a630b7aa26241c148181 |
|
MD5 | db995117dfc52da434824e01b57bd4b0 |
|
BLAKE2b-256 | ec28f39b85970e25406126a07203837109df5829e2de62f1ef8e3997906fb2ee |
Close
Hashes for html_testRunner_df-1.2.2.dev4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4bf69c2eeba4a46ad7de229637eb25b10be83193720e0c7a6039a2be7cf5024a |
|
MD5 | 8e982043e8a481e9f959161ca653fabf |
|
BLAKE2b-256 | 7ee7c6b07bb684428cdd9576518c629a67c6b11866f6205a5518bb4a8b6313e6 |