Python unittest runner with html report.
Project description
'Because testing should help, not constrain.'
Example
-
Source code:
my_bugged_module.py
def my_bugged_function(): my_var = {'a': 'b'} 1/0
-
Test case:
test.py
from logging import getLogger from my_bugged_module import my_bugged_function from unittest import TestCase class MyTestCase(TestCase): def test(self): """ Test example. """ print("Print something") getLogger().info("Log message") my_bugged_function()
-
Result:
Use as nose plugin
nosetests --with-html-test test
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
html_test_report-1.0.0.tar.gz
(12.6 kB
view hashes)
Built Distribution
Close
Hashes for html_test_report-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49072d89d69a8ca868a72387b6837923f75779da74607a0e740eb40bac9f9d5f |
|
MD5 | e63e3a5e39e39304fbff8077dc227e21 |
|
BLAKE2b-256 | fc145b0c17ca7a4292c5573b1b4b31c5f4916fa7c431cfb47aa12b67ffe297f8 |