@@ -26,7 +26,7 @@ test modules (which is the default behaviour of the plugin), just run pytest as
2626 $ pytest -v
2727
2828To change the level of randomness allowed, run pytest with ``--random-order-bucket=<bucket-type> `` option
29- where ``<bucket-type> `` can be ``class ``, ``module ``, ``package ``, or ``global ``:
29+ where ``<bucket-type> `` can be ``class ``, ``module ``, ``package ``, `` global ``, or ``none ``:
3030
3131::
3232
@@ -67,6 +67,9 @@ package
6767global
6868 All tests fall in the same bucket, full randomness, tests probably take longer to run.
6969
70+ none
71+ Disable shuffling.
72+
7073If you have three buckets of tests ``A ``, ``B ``, and ``C `` with three tests ``1 `` and ``2 ``, and ``3 `` in each of them,
7174then one of many potential orderings that non-global randomisation can produce could be:
7275
@@ -148,8 +151,8 @@ You can now use the ``--random-order-seed=...`` bit as an argument to the next r
148151 $ pytest -v --random-order-seed=24775
149152
150153
151- Disable the Plugin
152- ++++++++++++++++++
154+ Disable Randomisation or the Plugin
155+ +++++++++++++++++++++++++++++++++++
153156
154157If the plugin misbehaves or you just want to assure yourself that it is not the plugin making your tests fail or
155158pass undeservedly, you can disable it:
@@ -158,3 +161,9 @@ pass undeservedly, you can disable it:
158161
159162 $ pytest -p no:random-order -v
160163
164+ To disable just the shuffling, but let the plugin exist:
165+
166+ ::
167+
168+ $ pytest --random-order-bucket=none
169+
0 commit comments