Registry / devops / pytest-html-reporter

pytest-html-reporter

JSON →
library0.2.9pypypi✓ verified 82d ago

A pytest plugin that generates static HTML reports with test results, including pass/fail statistics, error details, and screenshots. Version 0.2.9 works with Python >=3.5. Maintenance cadence is low; last release 2022.

pip install pytest-html-reporter
INSTALL
IMPORT
SIG · PYTEST-HTML-REPORT
P
pytest-html-reporter
devopspythonv0.2.9
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

plugin
from pytest_html_reporter import plugin
import pytest_plugins = 'pytest_html_reporter'

Enable plugin in conftest.py and run with --html-report flag.

# conftest.py pytest_plugins = ['pytest_html_reporter'] # Run: pytest --html-report=./reports/report.html
Debug
Known issues
deprecatedPlugin uses deprecated pytest hooks; may break with pytest >=7.0
fix
Consider alternative plugins like pytest-html or pytest-sugar
affects: pytest >=7.0
gotchaThe --html-report flag overwrites existing report without warning
fix
Use a unique filename per run or timestamp
affects: all
gotchaScreenshot capture requires pytest-selenium; not included
fix
Install pytest-selenium separately for screenshot functionality
affects: all
Upgrade
Version history
0.2.9latest on PyPI · released Feb 13, 2022
Audit
Dependencies
pytestrequiredPlugin requires pytest framework
jinja2requiredHTML template rendering
beautifulsoup4requiredHTML parsing
Agent activity
4 hits · last 30 days
node
4
Resources
pytest-html-reporter — pip install pytest-html-reporter · libregistry