pytest-dev / pytest-dev/pytest-html

Not getting any data in report using pytest-html 4.1.1

Open
#810 5 comments 1 reaction 0 assignees View on GitHub

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.

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.