{"id":45915,"library":"pytest-html-reporter","title":"pytest-html-reporter","description":"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.","status":"active","version":"0.2.9","language":"python","source_language":"en","source_url":"https://github.com/prashanth-sams/pytest-html-reporter","tags":["pytest","html-report","testing"],"install":[{"cmd":"pip install pytest-html-reporter","lang":"bash","label":"Install via pip"}],"dependencies":[{"reason":"Plugin requires pytest framework","package":"pytest","optional":false},{"reason":"HTML template rendering","package":"jinja2","optional":false},{"reason":"HTML parsing","package":"beautifulsoup4","optional":false}],"imports":[{"wrong":"import pytest_plugins = 'pytest_html_reporter'","symbol":"plugin","correct":"from pytest_html_reporter import plugin"}],"quickstart":{"code":"# conftest.py\npytest_plugins = ['pytest_html_reporter']\n\n# Run: pytest --html-report=./reports/report.html","lang":"python","description":"Enable plugin in conftest.py and run with --html-report flag."},"warnings":[{"fix":"Consider alternative plugins like pytest-html or pytest-sugar","message":"Plugin uses deprecated pytest hooks; may break with pytest >=7.0","severity":"deprecated","affected_versions":"pytest >=7.0"},{"fix":"Use a unique filename per run or timestamp","message":"The --html-report flag overwrites existing report without warning","severity":"gotcha","affected_versions":"all"},{"fix":"Install pytest-selenium separately for screenshot functionality","message":"Screenshot capture requires pytest-selenium; not included","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'0.2.9':24 '2022':35 '3.5':28 'cadenc':30 'detail':20 'error':19 'generat':9 'html':3,11,38 'html-report':37 'includ':16 'last':33 'low':32 'mainten':29 'pass/fail':17 'plugin':7 'pytest':2,6,36 'pytest-html-report':1 'python':27 'releas':34 'report':4,12,39 'result':15 'screenshot':22 'static':10 'statist':18 'test':14,40 'version':23 'work':25","created_at":"2026-06-07T12:57:21.372193+00:00","updated_at":"2026-06-07T12:57:21.372193+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/prashanth-sams/pytest-html-reporter","github":"https://github.com/prashanth-sams/pytest-html-reporter","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops","testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}