pytest-html icon indicating copy to clipboard operation
pytest-html copied to clipboard

Plugin for generating HTML reports for pytest results

Results 218 pytest-html issues
Sort by recently updated
recently updated
newest added
trafficstars

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: ![image](https://github.com/user-attachments/assets/35a41092-a4e4-4b75-b9b7-d5ca60b73ed0)...

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. ![image](https://github.com/user-attachments/assets/a866be00-31e1-4a1c-a2cc-1fadbe05a88e) ![image](https://github.com/user-attachments/assets/53f9a14b-972a-4a2b-8deb-c9b76e688b5c)

needs more info

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...