Skip to content

feat: add --reruns-mode option to sum marker and global reruns (#321)#328

Open
SAY-5 wants to merge 1 commit into
pytest-dev:masterfrom
SAY-5:feat/reruns-mode-append-321
Open

feat: add --reruns-mode option to sum marker and global reruns (#321)#328
SAY-5 wants to merge 1 commit into
pytest-dev:masterfrom
SAY-5:feat/reruns-mode-append-321

Conversation

@SAY-5
Copy link
Copy Markdown
Contributor

@SAY-5 SAY-5 commented May 13, 2026

Closes #321.

Adds --reruns-mode=strict|append. strict keeps the existing priority (marker overrides global). append sums the marker count and the global --reruns / reruns ini setting, so @pytest.mark.flaky(reruns=2) run with --reruns 4 re-runs up to 6 times. Per @icemac in #321 ("I like the idea and I'd prefer the --reruns-mode=append vs. strict implementation of the option").

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: Option to append decorator and CLI rerun counts for additive retries

1 participant