Package Info

python-pytest-reorder


Pytest plugin for reordering tests depending on their paths and names


Development/Languages/Python

Reorder tests depending on their nodeids (strings of test file path plus test name plus parametrization, like: test/test_prefix_reordering.py::test_reordering_default[test_names5-expected_test_order5]).

Normally tests are sorted alphabetically. That makes integration tests run before unit tests.

With pytest_reorder you can install a hook that will change the order of tests in the suite. By default pytest_reorder will seek for unit, integration and ui tests and put them in the following order:

  • unit
  • all tests with names not indicating unit, integration, nor UI tests
  • integration
  • ui

The default regular expressions can find unit, integration and UI tests both laid flat and deeply nested. You can also specify your custom order.


License: MIT
URL: https://github.com/not-raspberry/pytest_reorder

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
0.1.1-bp155.2.9 info GA Release 2023-05-22 15 SP5
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python3-pytest-reorder
0.1.1-bp154.1.24 info GA Release 2022-05-12 15 SP4
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python3-pytest-reorder
0.1.1-bp153.1.21 info GA Release 2021-03-06 15 SP3
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-pytest-reorder
  • python3-pytest-reorder
0.1.1-bp152.3.17 info GA Release 2020-04-17 15 SP2
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-pytest-reorder
  • python3-pytest-reorder
0.1.1-bp151.1.3 info GA Release 2019-07-17 15 SP1
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-pytest-reorder
  • python3-pytest-reorder