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
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_groups-1.1.0.tar.gz
.
File metadata
- Download URL: pytest_test_groups-1.1.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c17a445676969dd4442e1fe03acd8d8dda87bc8f3beee00a80d5d87adc33eb43 |
|
MD5 | 40bbf0afb11e13ae6bad17514e2dd00d |
|
BLAKE2b-256 | 2043ffe71b6037b7efc7dd74ac15880198a167a46e5e917b426405c203b70e38 |
Provenance
The following attestation bundles were made for pytest_test_groups-1.1.0.tar.gz
:
Publisher:
publish.yml
on mark-adams/pytest-test-groups
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
pytest_test_groups-1.1.0.tar.gz
- Subject digest:
c17a445676969dd4442e1fe03acd8d8dda87bc8f3beee00a80d5d87adc33eb43
- Sigstore transparency entry: 148949510
- Sigstore integration time:
- Predicate type:
File details
Details for the file pytest_test_groups-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: pytest_test_groups-1.1.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8210002934b1932a2a1ee94f817109610f3ff371cf48c8c08f709c2f503db71e |
|
MD5 | dc36279233261b9035dbb764c10a927e |
|
BLAKE2b-256 | 66c4f94b5290f0fe9abe7e09eb55f6ebcf99acf66830ce18cf891450e4816d2e |
Provenance
The following attestation bundles were made for pytest_test_groups-1.1.0-py3-none-any.whl
:
Publisher:
publish.yml
on mark-adams/pytest-test-groups
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
pytest_test_groups-1.1.0-py3-none-any.whl
- Subject digest:
8210002934b1932a2a1ee94f817109610f3ff371cf48c8c08f709c2f503db71e
- Sigstore transparency entry: 148949511
- Sigstore integration time:
- Predicate type: