This release is a pre-release and may not be stable for production use.
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:
Release files for html-testRunner-df 1.2.2.dev4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| html-testRunner-df-1.2.2.dev4.tar.gz | 536.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| html_testRunner_df-1.2.2.dev4-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 548.4 kB
Release files / html-testRunner-df-1.2.2.dev4.tar.gz
| Download URL | html-testRunner-df-1.2.2.dev4.tar.gz |
|---|---|
| Size | 536.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
88cef99409558b85e64ab82cfe7448f6590424591718a630b7aa26241c148181
|
|
BLAKE2b-256 checksum How to use checksums |
ec28f39b85970e25406126a07203837109df5829e2de62f1ef8e3997906fb2ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Release files / html_testRunner_df-1.2.2.dev4-py2.py3-none-any.whl
| Download URL | html_testRunner_df-1.2.2.dev4-py2.py3-none-any.whl |
|---|---|
| Size | 11.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
4bf69c2eeba4a46ad7de229637eb25b10be83193720e0c7a6039a2be7cf5024a
|
|
BLAKE2b-256 checksum How to use checksums |
7ee7c6b07bb684428cdd9576518c629a67c6b11866f6205a5518bb4a8b6313e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|