Skip to content

Commit f028ab7

Browse files
committed
Set version to 0.8.0dev
- adapt test to allow "dev" in version - add note about working with pytest-xdist
1 parent a8eb561 commit f028ab7

File tree

4 files changed

+21
-8
lines changed

4 files changed

+21
-8
lines changed

CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@
77

88
### Infrastructure
99
- added automatic documentation build on change
10-
- add Python 3.9, pypy3 and pytest 6.0 and 6.1 to CI builds
11-
- use GitHub Actions for builds, add Windows builds
12-
- add regression test for ``pytest-xdist``
10+
- added Python 3.9, pypy3 and pytest 6.0 and 6.1 to CI builds
11+
- use GitHub Actions for CI builds to speed them up, added Windows CI builds
12+
- added regression test for ``pytest-xdist``
1313
(imported from [PR #52](https://github.com/ftobia/pytest-ordering/pull/52))
1414

1515
## [Version 0.7.1](https://pypi.org/project/pytest-order/0.7.1/)
1616
Update after renaming the repository and the package.
1717

1818
### Changes
19-
- renamed repository and package from ``pytest-orderin2`` to ``pytest-order``
19+
- renamed repository and package from ``pytest-ordering2`` to ``pytest-order``
2020
- changed the used marker from ``run`` to ``order``, removed all additional
2121
markers (see [#38](https://github.com/ftobia/pytest-ordering/issues/38))
2222

docs/source/index.rst

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,8 @@ Configuration
267267
=============
268268
Currently there is only one option that changes the behavior of the plugin.
269269

270-
``--indulgent-ordering`` and overriding ordering
271-
------------------------------------------------
270+
``--indulgent-ordering``
271+
------------------------
272272
You may sometimes find that you want to suggest an ordering of tests, while
273273
allowing it to be overridden for good reason. For example, if you run your test
274274
suite in parallel and have a number of tests which are particularly slow, it
@@ -284,6 +284,19 @@ pytest-order *before* the sort from ``--failed-first``, allowing the failed
284284
tests to be sorted to the front (note that in pytest versions from 6.0 on,
285285
this seems not to be needed anymore, at least in this specific case).
286286

287+
Miscellaneous
288+
=============
289+
290+
Usage with pytest-xdist
291+
-----------------------
292+
The ``pytest-xdist`` plugin schedules tests unordered, and the order
293+
configured by ``pytest-order`` will normally not be preserved. But
294+
if we use the ``--dist=loadfile`` option, provided by ``xdist``, all tests
295+
from one file will be run in the same thread. So, to make the two plugins work
296+
together, we have to put each group of dependent tests in one file, and call
297+
pytest with ``--dist=loadfile`` (this is taken from
298+
`this issue <https://github.com/ftobia/pytest-ordering/issues/36>`__).
299+
287300

288301
.. toctree::
289302
:maxdepth: 2

pytest_order/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.8.0'
1+
__version__ = '0.8.0dev'

tests/test_misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ def test_version_exists():
99

1010

1111
def test_version_valid():
12-
assert re.match(r'[0-9]+\.[0-9]+(\.[0-9]+)?$',
12+
assert re.match(r'[0-9]+\.[0-9]+(\.[0-9]+)?(dev)?$',
1313
pytest_order.__version__)

0 commit comments

Comments
 (0)