pytest-dev / pytest-dev/pytest-rerunfailures
[RFC] `--pdb`: Friendlier default (use warning and infer `--reruns 0`)
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 477
- Forks
- 107
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 21
Description
Assume pyproject.toml:
[tool.pytest.ini_options]
addopts = "--reruns 2"
Current behavior
Right now, passing --pdb will raise:
ERROR: --reruns incompatible with --pdb
Better: Assume --reruns 0 if --pdb
It's highly unlikely a person attempting to drop into a shell wants reruns. Rather than error, show a warning:
WARNING: --reruns incompatible with --pdb, --reruns will behave as if set to 0
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
No source file or test is named. Start by locating the plugin's handling of --pdb and --reruns, then reproduce the pyproject.toml addopts example; done means the command warns instead of erroring and behaves as though --reruns were set to 0.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli, testing-qa
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100