Skip to main content
https://img.shields.io/pypi/v/html-testRunner.svg https://img.shields.io/travis/oldani/HtmlTestRunner.svg

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.

Release files for html-testRunner 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for html-testRunner 1.2.1
File Size Uploaded
html-testRunner-1.2.1.tar.gz 534.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for html-testRunner 1.2.1
File Interpreter ABI Platform
html_testRunner-1.2.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 545.7 kB

Release files / html-testRunner-1.2.1.tar.gz

Download URL html-testRunner-1.2.1.tar.gz
Size 534.4 kB
Tags Source
SHA-256 checksum
How to use checksums
dd65027b62078ffe450a1276f4875f6f3f2a03b13bb3ea144428b87784dc387a
BLAKE2b-256 checksum
How to use checksums
5d5b7844d6e6e9d072f38666fb332fc85aaa7ebed99b2f792c724d8a85282254
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.5.6

Release files / html_testRunner-1.2.1-py2.py3-none-any.whl

Download URL html_testRunner-1.2.1-py2.py3-none-any.whl
Size 11.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
57190df7b33788a148ff793cbcd1495ef51e265f8954e1d7c4318edc7bb636c3
BLAKE2b-256 checksum
How to use checksums
5e14456d48d6741c3cbbf170bf2a9c4f8075034baff4261819e8121d971e054e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.5.6

Release history Release notifications | RSS feed

This release

1.2.1 This release

2 release files

1.2

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page