Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not getting any data in report using pytest-html 4.1.1 #810

Open
supermete opened this issue Apr 23, 2024 · 4 comments
Open

Not getting any data in report using pytest-html 4.1.1 #810

supermete opened this issue Apr 23, 2024 · 4 comments

Comments

@supermete
Copy link

supermete commented Apr 23, 2024

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.

@BeyondEvil
Copy link
Contributor

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

@supermete
Copy link
Author

supermete commented Apr 25, 2024

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
Copy link
Author

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

image

@supermete
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants