pytest-dev / pytest-dev/pytest

lastfailed - persist failure sets until all broken tests where removed

Open
#1,017 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

plugin: cache status: help wanted topic: selection type: backward compatibility type: refactoring
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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.