@@ -31,7 +31,7 @@ test modules (which is the default behaviour of the plugin), just run pytest as
31
31
$ pytest -v
32
32
33
33
To 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 ``:
35
35
36
36
::
37
37
@@ -72,6 +72,9 @@ package
72
72
global
73
73
All tests fall in the same bucket, full randomness, tests probably take longer to run.
74
74
75
+ none
76
+ Disable shuffling.
77
+
75
78
If you have three buckets of tests ``A ``, ``B ``, and ``C `` with three tests ``1 `` and ``2 ``, and ``3 `` in each of them,
76
79
then one of many potential orderings that non-global randomisation can produce could be:
77
80
@@ -153,8 +156,8 @@ You can now use the ``--random-order-seed=...`` bit as an argument to the next r
153
156
$ pytest -v --random-order-seed=24775
154
157
155
158
156
- Disable the Plugin
157
- ++++++++++++++++++
159
+ Disable Randomisation or the Plugin
160
+ +++++++++++++++++++++++++++++++++++
158
161
159
162
If the plugin misbehaves or you just want to assure yourself that it is not the plugin making your tests fail or
160
163
pass undeservedly, you can disable it:
@@ -163,12 +166,9 @@ pass undeservedly, you can disable it:
163
166
164
167
$ pytest -p no:random-order -v
165
168
166
- Thanks
167
- ++++++
169
+ To disable just the shuffling, but let the plugin exist:
168
170
169
- Thanks ** Raul Gallegos ** (eLRuLL) for adding Python 2.6 support.
171
+ ::
170
172
171
- License
172
- -------
173
+ $ pytest --random-order-bucket=none
173
174
174
- Distributed under the terms of the MIT license, "pytest-random-order" is free and open source software
0 commit comments