-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
topic: collectionrelated to the collection phaserelated to the collection phasetopic: selectionrelated to test selection from the command linerelated to test selection from the command linetype: proposalproposal for a new feature, often to gather opinions or design the API around the new featureproposal for a new feature, often to gather opinions or design the API around the new feature
Description
Originally reported by: Anonymous
Some tests can be generating multiple tests through @pytest.mark.parametrize() or metafunc.parametrize, however if those tests are marked and specified not to run (through -m "not marker" command line argument) they are still collected first and then are deselected.
In my specific case, one of @pytest.mark.parametrize() is generating around 500 tests - only to be deselected afterwards. This makes a long test even longer.
Suggestion: to add an option not to generate (or not to collect) tests that are not required.
Thanks!
Metadata
Metadata
Assignees
Labels
topic: collectionrelated to the collection phaserelated to the collection phasetopic: selectionrelated to test selection from the command linerelated to test selection from the command linetype: proposalproposal for a new feature, often to gather opinions or design the API around the new featureproposal for a new feature, often to gather opinions or design the API around the new feature