-
Notifications
You must be signed in to change notification settings - Fork 247
Closed
Description
Hi, I have the following scenario:
- I have some tests that need to be run in the same worker due to the fact they use a shared object (I know it's not very idiomatic for unit tests, but it is really the simpler way to check what I need to check)
- I saw the
--dist loadgroupoption, but unfortunately it is not the default, so I should remember to specify every time the command line option - I can't add it to the
addoptssetting since it errors if I don't specify either-nor-tx, and I want to be able to choose to run the tests the standard way too.
What could work for me is a setting to set the default algorithm to use when --dist is not specified, so that:
- if I run
pyteststandalone, it doesn't run in parallel - if I run
pytest -n auto, it uses the algorithm specified in the setting - if I run
pytest -n auto --dist loadfile, it overrides the setting with theloadfilealgorithm.
Metadata
Metadata
Assignees
Labels
No labels