pytest-dev / pytest-dev/pytest-html

Captured stdio output repeating in HTML report

Open
#872 2 comments 0 reactions 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

My test produces log output using the logging module. In the HTML report, the output lines repeat, and the repetition increases for the number of tests run.

e.g

first test:

---------------------------- Captured stderr setup -----------------------------
2025-02-06 10:26:49,996 - test - DEBUG - Something
2025-02-06 10:26:49,996 - test - DEBUG - Something else

second test

---------------------------- Captured stderr setup -----------------------------
2025-02-06 10:26:49,996 - test - DEBUG - Something
2025-02-06 10:26:49,996 - test - DEBUG - Something
2025-02-06 10:26:49,996 - test - DEBUG - Something else
2025-02-06 10:26:49,996 - test - DEBUG - Something else

using pytest-html>=4.1.1

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 issue with pytest-html>=4.1.1 using logging output and multiple tests, then inspect how captured stderr is incorporated into the HTML report. Done means each log line appears once in the report regardless of the number of tests run.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.