Custom HTML report plugin for Pytest with charts and tables
Project description
PYTEST-HTMLX
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:
📝 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pytest_htmlx-0.3.0.tar.gz.
File metadata
- Download URL: pytest_htmlx-0.3.0.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
390409b8e9c2ec707a3c06e702efcb2f2855d859defa0004c57462e75aa4ee71
|
|
| MD5 |
cac10ee44c78a2f7f375cf37af0dac2e
|
|
| BLAKE2b-256 |
1e95eed486472e65741f3c2128dccbbc2b3da849a2711324bcf716319b816628
|
File details
Details for the file pytest_htmlx-0.3.0-py3-none-any.whl.
File metadata
- Download URL: pytest_htmlx-0.3.0-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae427cf81e43e8866382b00f514f79aa73318aaf58691d06f1e33f29a2a52b93
|
|
| MD5 |
64c63ec705bc71943b95244f4edf812f
|
|
| BLAKE2b-256 |
a9c09a0eeaec8037fe95481d235a9b2757780c004cf73e5d8a8748537a3cd8ba
|