Skip to main content

'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:

    Test report

Use as nose plugin

nosetests --with-html-test test

Metadata

Release files for html-test-report 1.1.5

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-test-report 1.1.5
File Size Uploaded Provenance
html_test_report-1.1.5.tar.gz 15.2 kB Without provenance Details

Release files / html_test_report-1.1.5.tar.gz

Download URL html_test_report-1.1.5.tar.gz
Size 15.2 kB
Tags Source
SHA-256 checksum
How to use checksums
22103f8361900efd7b8d655f695dfbb4b713c2b449ca3782981415750c185ac9
BLAKE2b-256 checksum
How to use checksums
cd56aa4e956a5c569ae0109f0b09f96911260cab4d4b716fc672683608bcaac6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Security for html-test-report 1.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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