Skip to content

Generating HTML Test Reports

Why HTML reports

Useful for:

  • sharing results with teams
  • CI artifacts
  • historical tracking

Common plugin

  • pytest-htmlpytest-html

Example usage

pytest --html=report.html --self-contained-html
pytest --html=report.html --self-contained-html

Tips

  • store reports as CI artifacts
  • include environment info and versions

If this helped you, consider buying me a coffee ☕

Buy me a coffee

Was this page helpful?

Let us know how we did