Skip to content

Commit 3e65538

Browse files
committed
Update README
1 parent 4b2a8fe commit 3e65538

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

README.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ test modules (which is the default behaviour of the plugin), just run pytest as
3131
$ pytest -v
3232

3333
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``:
3535

3636
::
3737

@@ -72,6 +72,9 @@ package
7272
global
7373
All tests fall in the same bucket, full randomness, tests probably take longer to run.
7474

75+
none
76+
Disable shuffling.
77+
7578
If you have three buckets of tests ``A``, ``B``, and ``C`` with three tests ``1`` and ``2``, and ``3`` in each of them,
7679
then 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

159162
If the plugin misbehaves or you just want to assure yourself that it is not the plugin making your tests fail or
160163
pass 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

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def read(fname):
1313

1414
setup(
1515
name='pytest-random-order',
16-
version='0.5.5',
16+
version='0.5.6',
1717
author='Jazeps Basko',
1818
author_email='jazeps.basko@gmail.com',
1919
maintainer='Jazeps Basko',

0 commit comments

Comments
 (0)