pytest-dev / pytest-dev/pytest-html

how can i realize append html result other than overwrite html result?

Open
#442 1 comment 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

now I run 2 commmands:

  1. pytest test1.py --html=report.html
  2. pytest test2.py --html=report.html

finally, the second runned command which generate report.html will overwrite the first generated report.html, but i hope the two result can merged, that means report.html include test1.py and test2.py result, could you tell me how i can do that?thank you very much

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

Start with the two pytest commands in the issue and inspect how each run writes report.html. Determine whether the project documents or tests combining separate HTML reports; done would be a supported approach or clearly specified behavior for including test1.py and test2.py results in one report.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.