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
📅 Future Releases
We’re working on exciting new capabilities for pytest-htmlx to make test reporting even more powerful:
- 📷 Screenshot Support for UI Tests — automatically capture and embed screenshots for Selenium, Playwright, or other UI automation test failures.
- 📝 Test Log Embedding — include detailed per-test logs inside the HTML report for easier debugging without switching between the terminal and report.
- 📊 Rich Visualizations — add trend charts and test run metrics over time.
💡 Feature suggestions are always welcome — submit ideas via our GitHub Issues.
📸 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.
🔗 Links
- PyPI: https://pypi.org/project/pytest-htmlx/
- Source Code: https://github.com/devarajug/pytest-htmlx
- Issues: GitHub Issue Tracker
Metadata
Release files for pytest-htmlx 0.3.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pytest_htmlx-0.3.4.tar.gz | 11.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytest_htmlx-0.3.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.1 kB
Release files / pytest_htmlx-0.3.4.tar.gz
| Download URL | pytest_htmlx-0.3.4.tar.gz |
|---|---|
| Size | 11.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
96fbcda7c55e497d181556dbb1f8f62cb0c1b1486dc045bb52a537dad8e28d44
|
|
BLAKE2b-256 checksum How to use checksums |
87f2a77ee7b7c3d0d9f462f3bdd40369dc850a62dbc3cbdd53c7e30ffdad0b7d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.13
|
Release files / pytest_htmlx-0.3.4-py3-none-any.whl
| Download URL | pytest_htmlx-0.3.4-py3-none-any.whl |
|---|---|
| Size | 10.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ee03d077acf850cd90d33fb695689f96c998c515c61e571c3103b00ce880ade1
|
|
BLAKE2b-256 checksum How to use checksums |
3b68fc44e2a471593e6893a1370a9d415a6aa75091be102bcf146c0391c14b12
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.13
|