Reorder tests depending on their nodeids (strings of test file path plus test name plus
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:
- all tests with names not indicating unit, integration, nor UI tests
The default regular expressions can find unit, integration and UI tests both laid flat and deeply
nested. You can also specify your custom order.