@@ -26,7 +26,7 @@ test modules (which is the default behaviour of the plugin), just run pytest as
26
26
$ pytest -v
27
27
28
28
To 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 ``:
30
30
31
31
::
32
32
@@ -67,6 +67,9 @@ package
67
67
global
68
68
All tests fall in the same bucket, full randomness, tests probably take longer to run.
69
69
70
+ none
71
+ Disable shuffling.
72
+
70
73
If you have three buckets of tests ``A ``, ``B ``, and ``C `` with three tests ``1 `` and ``2 ``, and ``3 `` in each of them,
71
74
then one of many potential orderings that non-global randomisation can produce could be:
72
75
@@ -148,8 +151,8 @@ You can now use the ``--random-order-seed=...`` bit as an argument to the next r
148
151
$ pytest -v --random-order-seed=24775
149
152
150
153
151
- Disable the Plugin
152
- ++++++++++++++++++
154
+ Disable Randomisation or the Plugin
155
+ +++++++++++++++++++++++++++++++++++
153
156
154
157
If the plugin misbehaves or you just want to assure yourself that it is not the plugin making your tests fail or
155
158
pass undeservedly, you can disable it:
@@ -158,3 +161,9 @@ pass undeservedly, you can disable it:
158
161
159
162
$ pytest -p no:random-order -v
160
163
164
+ To disable just the shuffling, but let the plugin exist:
165
+
166
+ ::
167
+
168
+ $ pytest --random-order-bucket=none
169
+
0 commit comments