@@ -31,7 +31,7 @@ test modules (which is the default behaviour of the plugin), just run pytest as
3131 $ pytest -v
3232
3333To change the level of randomness allowed, run pytest with ``--random-order-bucket=<bucket-type> `` option
34- where ``<bucket-type> `` can be ``class ``, ``module ``, ``package ``, or ``global ``:
34+ where ``<bucket-type> `` can be ``class ``, ``module ``, ``package ``, `` global ``, or ``none ``:
3535
3636::
3737
@@ -72,6 +72,9 @@ package
7272global
7373 All tests fall in the same bucket, full randomness, tests probably take longer to run.
7474
75+ none
76+ Disable shuffling.
77+
7578If you have three buckets of tests ``A ``, ``B ``, and ``C `` with three tests ``1 `` and ``2 ``, and ``3 `` in each of them,
7679then one of many potential orderings that non-global randomisation can produce could be:
7780
@@ -153,8 +156,8 @@ You can now use the ``--random-order-seed=...`` bit as an argument to the next r
153156 $ pytest -v --random-order-seed=24775
154157
155158
156- Disable the Plugin
157- ++++++++++++++++++
159+ Disable Randomisation or the Plugin
160+ +++++++++++++++++++++++++++++++++++
158161
159162If the plugin misbehaves or you just want to assure yourself that it is not the plugin making your tests fail or
160163pass undeservedly, you can disable it:
@@ -163,12 +166,9 @@ pass undeservedly, you can disable it:
163166
164167 $ pytest -p no:random-order -v
165168
166- Thanks
167- ++++++
169+ To disable just the shuffling, but let the plugin exist:
168170
169- Thanks ** Raul Gallegos ** (eLRuLL) for adding Python 2.6 support.
171+ ::
170172
171- License
172- -------
173+ $ pytest --random-order-bucket=none
173174
174- Distributed under the terms of the MIT license, "pytest-random-order" is free and open source software
0 commit comments