Tools for sorting test cases
Project description
Pytest-Sort
This pytest plugin is used to help identify application state leaks in your test suite. It does this by automatically changing the execution order of test cases.
How frustrating is it to have a test case that works fine when runs by itself, but fails when run with the rest of the suite? By running tests in a random order, the culprit of such problems can be identified much earlier in the development process. Alternately, running in ordered and reverse order can help find the cause of the problem in existing test suites.
Features
- Multiple sort options including: Random, Fastest, Reverse, and more.
- Group test cases into buckets that are each sorted separately.
- Control sort order of the buckets.
- Use Pytest markers to always run specific test cases in order.
Quick Start
Installation:
pip install pytest-sort --upgrade
Running with pytest-sort:
pytest --sort-mode=random
Documentation:
- Usage, Examples, Configuration, and more: https://pytest-sort.readthedocs.io/
Contribute
- Issue Tracker: https://github.com/WiredNerd/pytest-sort/issues
- Source Code: https://github.com/WiredNerd/pytest-sort
Support
If you are having issues, please let us know.
I can be contacted at: pbuschmail-pytestsort@yahoo.com
Or by opening an issue: https://github.com/WiredNerd/pytest-sort/issues
License
The project is licensed under the MIT license.
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
File details
Details for the file pytest-sort-1.3.1.tar.gz
.
File metadata
- Download URL: pytest-sort-1.3.1.tar.gz
- Upload date:
- Size: 26.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a65c570f797a2476295b5f61c648d27dd7a227319c05d0bec42b2ca368bbe9e |
|
MD5 | 6e84d75cdd39347c089fe8a99bb83326 |
|
BLAKE2b-256 | 6c44825aced209329ebc54111e78733273d643a1333d2b4ad7b5a79f2ce80397 |
File details
Details for the file pytest_sort-1.3.1-py3-none-any.whl
.
File metadata
- Download URL: pytest_sort-1.3.1-py3-none-any.whl
- Upload date:
- Size: 13.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af78884795b0c9d4aab7d7adb0b6dfabc6fb67507ab8bc866c3fc01a0cd7d5ba |
|
MD5 | a02908a4c18c4820ce02eab708f9a573 |
|
BLAKE2b-256 | 9be9ce85bb73c4dcd3c3208a554908df410d620fb5f638d9793ddf20440241fa |