pytest-dev / pytest-dev/pytest-html

Is there any way to generate one HTML report from two pytest runs ?

Open
#183 10 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature question
Dominant language
Python
Stars
779
Forks
260
PR merge metrics
No merged PRs in 30d

Description

Hi,

Is there any way that I can get in one HTML the results of two pytest runs ?

Something like

pytest -k something && pytest -k something_else --html=report.html

The reason that I need to do it is actually a workaround for another problem that I have (Not related to pytest-html, related to running in parallel with pytest-xdist instead) but it might help me to workaround this in some way

Thanks !!!

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

No file, test, or entry point is named. First review how pytest-html creates reports for separate pytest runs and how pytest-xdist affects that workflow; done would require a documented or implemented way to combine the two results into one HTML report.

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
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.