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.

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-1.2.1.tar.gz (534.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

html_testRunner-1.2.1-py2.py3-none-any.whl (11.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file html-testRunner-1.2.1.tar.gz.

File metadata

  • Download URL: html-testRunner-1.2.1.tar.gz
  • Upload date:
  • Size: 534.4 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for html-testRunner-1.2.1.tar.gz
Algorithm Hash digest
SHA256 dd65027b62078ffe450a1276f4875f6f3f2a03b13bb3ea144428b87784dc387a
MD5 ad456fa929aa0462afae6323282cc5ad
BLAKE2b-256 5d5b7844d6e6e9d072f38666fb332fc85aaa7ebed99b2f792c724d8a85282254

See more details on using hashes here.

File details

Details for the file html_testRunner-1.2.1-py2.py3-none-any.whl.

File metadata

  • Download URL: html_testRunner-1.2.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using 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

File hashes

Hashes for html_testRunner-1.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 57190df7b33788a148ff793cbcd1495ef51e265f8954e1d7c4318edc7bb636c3
MD5 ee23b5b14410f9869d3ee2d4d3344852
BLAKE2b-256 5e14456d48d6741c3cbbf170bf2a9c4f8075034baff4261819e8121d971e054e

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.2.1 This release

2 files

1.2

2 files

1.1.2

2 files

1.1.1

2 files

1.1.0

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

1

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page