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.3.1.tar.gz (10.5 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.3.1-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytest_htmlx-0.3.1.tar.gz
  • Upload date:
  • Size: 10.5 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.3.1.tar.gz
Algorithm Hash digest
SHA256 f1997c65f2fe360630c86c616714b2e37bc1507ff211da3132edb981f9d5138e
MD5 421ec7c1f35248f34232d8d2c9d46d99
BLAKE2b-256 64956675c433fd89e337b40fe73f05a622fa16b6d7846a308549b48bfb370261

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytest_htmlx-0.3.1-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.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3b2c24610853be8f172b975f3220f31d693ab9ce01ab9c2c4cf104849af7bd1b
MD5 5f58db2b447d280a0e98e3e6dea7f783
BLAKE2b-256 8da139c6036ae5b0e9465bd68e4ade24894748ffdb598370504699bfd3aaddb2

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