pytest-dev / pytest-dev/pytest-html

Group results for better viewing with pytest-xdist

Open
#240 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Hello,

I am currently running my tests with Appium and pytest-xdist, so basically the test flow is to run each test case on two different devices. After generating the pytest-html report, I see that each line of the report represents a function of my test (as we can see in the image below). Is there any way to group the tests by class? I think grouping the report by class would be more organized for people running tests in parallel :)

image

Thanks,
Rafael

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

The issue concerns pytest-html reports produced while pytest-xdist runs tests across devices. Start by reproducing the reported report layout and inspect the report-generation path; done means results are grouped by test class without losing entries from parallel runs.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.