Skip to main content

This library generates both HTML and JSON reports for your Nose unit tests, providing a clear and structured overview of test results.

Project description

Python Unit Test HTML JSON Report Generator

codecov PyPI - Downloads PyPI - Python Version GitHub contributors PyPI - License

Introduction

A [Nose2] plugin for generating detailed, searchable, and user-friendly HTML and JSON reports of your test results.

Key Features:

  • Rich Test Descriptions: Automatically captures docstrings from tests as descriptions, making the reports more informative and readable.
  • Failure Tracebacks: Includes complete traceback details for any failed tests, enabling quick identification and resolution of issues.
  • Searchable and Filterable Reports: Allows users to search and filter results by status (e.g., passed, failed, skipped, or error), making it easy to navigate through large test suites.
  • Customizable Outputs: Supports customization options to fit specific reporting needs.
  • JSON Integration: Provides JSON reports for easy integration with other tools or automated workflows.
  • This plugin is ideal for enhancing test visibility and making debugging more efficient.

Report Screenshot

Installation

You can install the Nose2 HTML Report Plugin using pip:

pip install pyrept

Configuration

To get nose2 to recognize the plugin add an entry into the plugin key of the unittest section of your nose2.cfg file. Configurations for the plugin should be placed into an html-report section of the configuration file. Below is a working example:

[unittest]
plugins = pyrept.html_report

[html-report]
always-on = True

Additional Settings

Specify the path for the HTML report. Defaults to report.html

[unittest]
plugins = pyrept.html_report

[html-report]
always-on = True
path = test_results/my_custom_report_file.html

Usage

Command line flag:

nose2 --html-report

If you have always-on=True inside your nose2.cfg:

nose2

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

pyrept-1.0.2.tar.gz (133.0 kB view details)

Uploaded Source

Built Distribution

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

pyrept-1.0.2-py2.py3-none-any.whl (9.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pyrept-1.0.2.tar.gz.

File metadata

  • Download URL: pyrept-1.0.2.tar.gz
  • Upload date:
  • Size: 133.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for pyrept-1.0.2.tar.gz
Algorithm Hash digest
SHA256 871d88c9ff02cf6b1f8bf458d8c3223c4e3ddb8dfc5553a758eb5a4be0b4c2a4
MD5 1f859b20e98862cb82907be6ba079972
BLAKE2b-256 f94baddd08d8a8e77fcf80c19009412eabc409cfae6b9a9e27629cb6becfb05b

See more details on using hashes here.

File details

Details for the file pyrept-1.0.2-py2.py3-none-any.whl.

File metadata

  • Download URL: pyrept-1.0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for pyrept-1.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 48f9850abe7457819fa65a128313a81ec81bdbd123eea6f0438c47480e25902b
MD5 67b9b217ea4432e3f4640b1f6143a8a2
BLAKE2b-256 945a9d18252f3ed53602fe89364aa3a024000943d65eabb1c24c8a175eddec08

See more details on using hashes here.

Supported by

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