Tools for sorting test cases
Project description
Project description
pytest-sort is a pytest plugin to automatically change the execution order of test cases. Changing the order of execution can help find test cases that only succeed because of a favorable state.
This plugin provides several options for controlling how the test cases are reordered.
Quick Start
Installation:
pip install pytest-sort --upgrade
Running with pytest-sort:
pytest --sort-mode=random
By default, all tests from the same module or class will run together. This command will randomize the execution order of the tests within the module/class.
pytest --help
In the pytest-sort section, all currently avaialable options will be listed.
You may also set options in any pytest configruation file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pytest_sort-1.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f6fed118de268bde2d14caf69f253a009c1c879dae77540523eb6134632861f |
|
MD5 | 82803d754ec3f781d1eedaf8dcac038f |
|
BLAKE2b-256 | e3886c5ac085177a73d130cb31182506ee98ef718f3888b51bed25d80e19e0a8 |