pytest plugin to run tests in a specific order
Actively maintained. Last release 6 months ago, commits in 23 of the last 26 weeks. A safe choice.
pip install pytest-orderpytest-order - a pytest plugin to order test execution
pytest-order is a pytest plugin that allows you to customize the order in which
your tests are run. It uses the marker order that defines when a specific
test shall run, either by using an ordinal number, or by specifying the
relationship to other tests.
pytest-order is a fork of
pytest-ordering that provides
additional features like ordering relative to other tests.
pytest-order works with all supported Python versions, with pytest versions >= 6.2.4
for Python < 3.14, and pytest >= 7.4 for Python 3.14.
pytest-order runs on Linux, macOS and Windows.
Documentation
Apart from this overview, the following information is available:
- usage documentation for the latest release
- usage documentation for the current main branch
- most examples shown in the documentation can also be found in the repository
- the Release Notes with a list of changes in the latest versions
- a list of open issues in the original project and their handling in