pytest-dev / pytest-random-order

pytest plugin to randomise the order of tests with some control over the randomness
MIT License
65 stars 10 forks source link

Do not randomize initial tests #29

Closed michalsimek closed 5 years ago

michalsimek commented 6 years ago

Hi,

I would like to use this module for test randomization but I need to run some initial setup first before other tests. I would expect that It is possible to move them to different file and never randomize files but will be the best if I can simply mark tests which shouldn't be randomized and should run first before others.

Thanks

jbasko commented 6 years ago

Do you want certain tests to run first or do you want some setup to always run first? If you want some setup to run first, you want to look at pytest fixtures with autouse=True. Did I understand you correctly?

jbasko commented 5 years ago

Closing due to lack of feedback.