Skip to content

Latest commit

Β 

History

History
61 lines (41 loc) Β· 2.4 KB

File metadata and controls

61 lines (41 loc) Β· 2.4 KB

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

πŸ“… 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: 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.

πŸ”— Links