A Pytest plugin for running a subset of your tests by splitting them in to equally sized groups.
Project description
Welcome to pytest-test-groups!
pytest-test-groups allows you to split your test runs into groups of a specific size to make it easier to split up your test runs.
Usage
# Install pytest-test-groups pip install pytest-test-groups # Split the tests into 10 groups and run the second group py.test --test-group-count 10 --test-group=2 # Randomize the test order, split into 10 groups, and run the second group py.test --test-group-count 10 --test-group=2 --test-group-random-seed=12345
Why would I use this?
Sometimes you may have some long running test jobs that take a while to complete. This can be a major headache when trying to run tests quickly. pytest-test-groups allows you to easily say “split my tests into groups of 10 tests and run the second group”. This is primarily useful in the context of CI builds.
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-test-grouping-1.0.3b0.tar.gz
.
File metadata
- Download URL: pytest-test-grouping-1.0.3b0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 931921785c75d26449a5d9470c090540348e733771c56c7d55abf33cfa48adf0 |
|
MD5 | ef0ea5dd37776536a54b56b2a1805f26 |
|
BLAKE2b-256 | e99ce391b0d28781b7a6fd683f80cc19d18b65942dfb6c7ce7e29b48735ee3f9 |
File details
Details for the file pytest_test_grouping-1.0.3b0-py2.py3-none-any.whl
.
File metadata
- Download URL: pytest_test_grouping-1.0.3b0-py2.py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33f1dc5ed6098044f17a50c211b0445d58ee6d2b26c9fa35e2269368d2f32722 |
|
MD5 | 156dc6a0b876b367660850a44efdc4ad |
|
BLAKE2b-256 | 86bdbc1213c0997a7f599c7e145853256a1951680de47bb3ed56b153f257ecac |