Skip to content

devarajug/pytest-htmlx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors