pytest-dev / pytest-dev/pytest-html

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

Open
#443 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

next-gen
Dominant language
Python
Stars
779
Forks
260
PR merge metrics
No merged PRs in 30d

Description

now I run 2 commmands:

pytest test1.py --html=report.html
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 by reading the pytest-html handling of the --html option and run the two commands shown in the issue to reproduce the overwrite. Determine whether combining results from separate pytest runs is supported or requires a design decision; done means one report.html contains both test1.py and test2.py results without the second run replacing the first.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.