pytest-dev / pytest-dev/pytest
lastfailed - persist failure sets until all broken tests where removed
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 14.5k
- Forks
- 3.4k
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 35
Description
it occurred to me that while doing red-green refactoring,
the likelihood of breaking tests in the same failure set is high,
it might be helpful to have an option to keep them around
i propose adding a --lf-keep option that would simply skip writing the new last-failed if there are leftover failures
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
Start from the issue description and trace pytest's existing last-failed handling and command-line option definitions. Determine where the last-failed set is written when failures remain; done means a --lf-keep option preserves the prior set until no broken tests remain, with behavior covered by the relevant existing tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing-qa
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100