Skip to main content

Custom HTML report plugin for Pytest with charts and tables

Project description

PYTEST-HTMLX

PyPI - Version PyPI - Downloads Python Version License GitHub Issues GitHub Stars

pytest-htmlx is a plugin for pytest that generate beautiful and customizable HTML reports for your pytest test suite with ease.

This package automatically creates a detailed HTML report after running your tests, helping you better visualize test results, errors, and logs.


📦 Installation

Install it via pip:

pip install pytest-htmlx

🚀 Usage

Simply run your tests with the --htmlx flag:

pytest --htmlx

This generates a report named report.html in the current directory.

To specify a custom report file path:

pytest --htmlx=results/my-report.html

✨ Features

  • Interactive, modern HTML report
  • Summary of passed/failed/skipped tests
  • Stack traces and log capture

📸 HTML Report Screenshot

Below is an example of what the HTML report looks like: HTML Report Example

📝 License

This project is licensed under the MIT License.

🙌 Contributing

Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.

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

pytest_htmlx-0.1.2.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

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

pytest_htmlx-0.1.2-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file pytest_htmlx-0.1.2.tar.gz.

File metadata

  • Download URL: pytest_htmlx-0.1.2.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for pytest_htmlx-0.1.2.tar.gz
Algorithm Hash digest
SHA256 20d5c003a355719908bbe5f5f358ca4b6a7c3e276068acaf111929c8e3da39b3
MD5 8cf5c009ed0a74cb100f9a5dc9df88e2
BLAKE2b-256 afbd34aa844e5df9f4770f611d3f57d89b1fb3cc5ab1d51bc08f4913595ab57b

See more details on using hashes here.

File details

Details for the file pytest_htmlx-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pytest_htmlx-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for pytest_htmlx-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 37f917ce8b4c095950b6111ab67ec017ad6531d78c77ab00fea781e2f3f2dff3
MD5 d4630d2831fe2cad86a751faaa37975d
BLAKE2b-256 8259a69e4e20e0fbb7cbc081e27f8a4a1523e9188e1d68513f5d497e12c6169b

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