{"library":"pytest-reporter-html1","title":"Pytest HTML1 Reporter","description":"Pytest-reporter-html1 is a basic HTML report template for Pytest, leveraging the Jinja2 template engine. It extends `pytest-reporter` to generate rich, expandable reports covering test files, phases, and detailed test information. The current version is 0.9.5, and it maintains an active release cadence for bug fixes and feature enhancements.","language":"python","status":"active","last_verified":"Thu Apr 16","install":{"commands":["pip install pytest-reporter-html1"],"cli":null},"imports":[],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"# tests/test_example.py\ndef test_success():\n    assert True\n\ndef test_failure():\n    assert False\n\n# Run from your terminal in the project root\n# This command will generate a detailed HTML report named 'report.html'\n# using the html1 template.\n# pytest --template=html1/index.html --report=report.html\n\n# To make the report self-contained (embed CSS, JS, images):\n# pytest --template=html1/index.html --report=report.html --split-report=False\n# Note: --split-report=False is the default behavior. For older versions, --self-contained might be used, but is deprecated.\n\n# To split assets (CSS, JS, images) into separate files:\n# pytest --template=html1/index.html --report=report.html --split-report\n","lang":"bash","description":"To generate an HTML report, run pytest with the `--template` and `--report` command-line options. The `--template` argument specifies the template to use (here, `html1/index.html`), and `--report` defines the output path and filename for the generated HTML report. By default, the report is self-contained. Use `--split-report` to separate assets like CSS and JavaScript.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}