Skip to content

Document selecting repeated parameterized cases - #101

Open
ShahadatTest wants to merge 1 commit into
pytest-dev:mainfrom
ShahadatTest:docs/parametrized-test-selection
Open

ShahadatTest wants to merge 1 commit into
pytest-dev:mainfrom
ShahadatTest:docs/parametrized-test-selection

Conversation

@ShahadatTest

Copy link
Copy Markdown

Document how to repeat one parameterized case when --count adds a repetition suffix to each node ID. The README now shows a two-value example and a quoted -k expression that selects all three repetitions of one value.

Refs #21. This documents the existing workaround; it does not change collection or fix selection by the original node ID.

Validation on Windows with CPython 3.12.10 and pytest 8.4.2: the exact README example reproduces the original selection error and the workaround yields 3 passed / 3 deselected; all 16 repository tests pass, README RST renders without warnings, and git diff --check passes.

AI disclosure: OpenAI Codex assisted with drafting the documentation and running validation.

This branch has not been deployed

No deployments
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.

1 participant