pytest-dev / pytest-dev/pytest-html
Not getting any data in report using pytest-html 4.1.1
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 779
- Forks
- 260
- PR merge metrics
- No merged PRs in 30d
Description
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.
When I downgrade to 4.0.2, I can see data being inserted in the table, but the green button still appears.
I have self-contained-report option active, I don't use --capture or --show-capture options, nor -s.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the report-generation behavior while comparing pytest-html 4.0.2 and 4.1.1 with pytest 7.3.1 and 8.1.1. Start with the self-contained-report setting and the reported capture options, then verify whether test data and completion state appear in the generated report; done means a finished report displays the test data without the persistent reload message.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100