pytest-dev / pytest-dev/pytest-html

Generate partial HTML report on abort

Open
#503 3 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

We are running into a situation with the combination of pytest-repeat and pytest-html where we repeat a test n times yet if aborted (for example by Jenkins) no HTML report is generated. This occurs even if n - 1 iterations ran successfully and pytest execution was only aborted during the last iteration. I welcome any suggestions/solutions that I can implement myself (for example in conftest.py).

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 mentions pytest-repeat, pytest-html, Jenkins, and a possible conftest.py workaround. Start by reproducing an aborted repeated run and inspect the pytest configuration and plugin interaction. Done means an abort still produces a partial HTML report.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.