{"library":"pytest-html-merger","title":"Pytest HTML Report Merger","description":"pytest-html-merger is a utility designed to combine multiple HTML reports generated by the pytest-html plugin into a single, unified HTML report. It is currently at version 0.1.0 and is maintained with an active development cadence, with its latest release in July 2024.","language":"python","status":"active","last_verified":"Thu Apr 16","install":{"commands":["pip install pytest-html-merger"],"cli":{"name":"pytest-html-merger","version":"sh: 1: pytest-html-merger: not found"}},"imports":[],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"# 1. Generate individual HTML reports with pytest-html\n# Assuming you have tests in 'my_tests' directory\npytest my_tests/test_a.py --html=report_a.html\npytest my_tests/test_b.py --html=report_b.html\n\n# 2. Merge the reports using pytest-html-merger\npytest_html_merger report_a.html report_b.html -o merged_report.html --title \"My Combined Test Results\"\n\n# Or merge all HTML files in a directory\n# Assuming reports are in a 'reports' directory\n# mkdir reports && mv report_a.html report_b.html reports/\n# pytest_html_merger -i reports -o merged_reports_from_dir.html","lang":"bash","description":"First, generate individual HTML reports using the `pytest-html` plugin. Then, use the `pytest_html_merger` command-line tool, specifying input files or directories and an output file.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}