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

Keep random-order-bucket=none #40

Closed matejcik closed 7 months ago

matejcik commented 5 years ago

The none value for random-order-bucket is deprecated.

Here's a usecase that IMHO warrants keeping it.

In our project, the top-level setup.cfg enables random-order by adding addopts = --random-order. From that point on, it's not possible to disable randomization on the command line: using -p no:random_order deactivates the plugin, which makes the --random-order argument invalid.

The only option here is to specify --random-order-bucket=none.

jbasko commented 5 years ago

Thanks @matejcik for the use case. I will not remove it in future.