pytest-html
pytest-html copied to clipboard
Plugin for generating HTML reports for pytest results
This is to prevent the [reverse tabnabbing](https://owasp.org/www-community/attacks/Reverse_Tabnabbing) vulnerability. Nevertheless, modern navigators add `rel="noopener"` automatically to **_blank** target links. But it doesn't hurt to add this extra security precaution, I guess
@pytest.hookimpl(tryfirst=True) def pytest_configure(config): if not os.path.exists('reports'): os.makedirs('reports') config.option.htmlpath = 'reports/'+datetime.now().strftime("%d-%m-%Y %H-%M-%S")+".html"
Since pytest_html_results_table_header hook is not invoking in pytest-html 4.1.1 when running tests with markers. With pytest_html_results_table_header hook I’m trying to insert a snapshot column for failed test , since the...
When the test report is generated on device A, there will be detailed information about each case. I think the original file on device A should be quoted. Like: ...
Hello, I have an automation framework with selenium/pytest with some fixtures in the test modules which execute repetitive code. In case the execution fails in the fixture this is marked...
Using pytest-html 4.1.1, the same test cases can generate the pass/fail status and logs in the Windows environment, but fail to generate report content in the Linux environment.  
Hi Team, I'm currently encountering a problem with pytest-html after upgrading from version 3.2.0 to 4.1.1. My HTML reports are now empty when running tagged tests, although untagged tests generate...
Hi, I would like to modify the index.html / index.jinja2 : With for example "add a logo on the top of my page". How can I use specific template using...