pytest-html
pytest-html copied to clipboard
Plugin for generating HTML reports for pytest results
updates: - [github.com/psf/black: 22.3.0 → 22.8.0](https://github.com/psf/black/compare/22.3.0...22.8.0) - [github.com/pre-commit/pre-commit-hooks: v4.1.0 → v4.3.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.1.0...v4.3.0) - [github.com/PyCQA/flake8: 4.0.1 → 5.0.4](https://github.com/PyCQA/flake8/compare/4.0.1...5.0.4) - [github.com/asottile/reorder_python_imports: v3.0.1 → v3.8.3](https://github.com/asottile/reorder_python_imports/compare/v3.0.1...v3.8.3) - [github.com/asottile/pyupgrade: v2.32.0 → v2.38.2](https://github.com/asottile/pyupgrade/compare/v2.32.0...v2.38.2) - [github.com/pre-commit/mirrors-eslint: v7.13.0 →...
Team, every time if i ran the HTML report in pytest getting below error .No logs are captured in that report.Please help me how to resolve this issue to get...
i need help in the way pytest_runtest_makereport handles error pytest_html = item.config.pluginmanager.getplugin("html") report = outcome.get_result() extra = getattr(report, "extra", []) LOG.info(f"Now in test {item.nodeid} {call.when}") error = hasattrb(report, "waserror") am...
I need help regarding pytest html report customization. I need to print failed network request status code(By TestCase wise) in report so I did the below code. StatusCode column created...
Gathering some test run statistics at the end of the test run and displaying them in summary section
Hi all! I have a situation where I do some REST API calls during pytest run. Each request is saved in DB with the session_id field which is either some...
I have been able to modify the summary with the following snippet from another issue: ```python def pytest_html_results_summary(prefix, summary, postfix): prefix.extend([ html.button("Click me", onclick="myFunction()"), html.p(id="demo"), html.script(raw(""" function myFunction() { document.getElementById('demo').innerHTML...
As per [this comment](https://github.com/pytest-dev/pytest-html/issues/482#issuecomment-1126084182), add an upload of json-formatted coverage test reports so that this tool https://carreau.github.io/pytest-json-report-viewer/ can be used to analyze the time spent in tests
I believe there is some sort of race condition going on, sometimes I get the report generated at the right time but the results are just not there. My setup...