pytest-dev / pytest-dev/pytest-rerunfailures

Decorator to disable a test rerunning

Open
#187 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
477
Forks
107
Avg merge
2d 14h
Merged PRs (30d)
21

Description

Hi, thanks for such a helpful library! While using this library I encountered a test suit that deals badly with the rerunnig. Basically, that test spawns multiple threads on reruns and pytest never exits, but I want to keep the other test to be able to rerun with the provided global flags options --rerun, etc, so my question is is it currently possible to decorate one test suit so it wouldn't rerun on failure?

Contributor guide

Open the contributing guide

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

Review the pytest plugin's handling of the global --rerun options and how test-level configuration is represented. Determine whether a decorator can disable reruns for one test suite without affecting other tests, then verify that the opted-out tests do not rerun while the global rerun behavior remains unchanged.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.