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

Not getting any data in report using pytest-html 4.1.1

Open supermete opened this issue 1 year ago • 5 comments

Hello,

I recently upgraded from pytest 7.3.1 to pytest 8.1.1 and upgraded pytest-html from 3.2.0 to 4.1.1. Now the generated html report doesn't contain any data. I keep getting what I believe is the template with the green button stating that "There are still running tests. Reload this page to get the latest results!". Clicking on reload does not make a difference. I'm positive that the tests are indeed finished as I can see the logs on stdout. I've tried inserting dummy data to ensure that the issue is not coming from what I'm inserting and I confirm that I still can't see anything in the report aside from the metadata.

image

When I downgrade to 4.0.2, I can see data being inserted in the table, but the green button still appears.

image

I have self-contained-report option active, I don't use --capture or --show-capture options, nor -s.

supermete avatar Apr 23 '24 22:04 supermete

Please check the browser console, it's likely that the JS is failing for some reason.

BeyondEvil avatar Apr 24 '24 17:04 BeyondEvil

I have no experience in this stuff but after looking it up all I can see is the following warning:

image

This seems unrelated? I can't see anything failing unless I'm looking at the wrong place?

supermete avatar Apr 25 '24 12:04 supermete

I found this as well if it can be of any help:

image

supermete avatar Apr 25 '24 15:04 supermete

@BeyondEvil sorry to bother you, is this the data you were looking for? Or should I look somewhere else?

supermete avatar Apr 29 '24 09:04 supermete