pytest-dev / pytest-dev/pytest-rerunfailures
Decorator to disable a test rerunning
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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