A Pytest plugin for running a subset of your tests by splitting them in to equally sized groups. Forked from Mark Adams' original project pytest-test-groups.
Project description
pytest-split-tests 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-split-tests pip install pytest-split-tests # Split the tests into 10 groups and run the second group py.test --test-group-count 10 --test-group=2 # Assign tests pseudo-randomly 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-split-tests 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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pytest-split-tests-1.1.0.tar.gz.
File metadata
- Download URL: pytest-split-tests-1.1.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e55bbf127d94ff913a248f32e64f07cd3201e8a82397e8152694e4ffe456e21c
|
|
| MD5 |
ceb39b2af5e741a7421963c05918daf7
|
|
| BLAKE2b-256 |
2d01593bdeff8f521a614ef6f7837983f1d1cf3f07cff565be4a5f349349e9e1
|
File details
Details for the file pytest_split_tests-1.1.0-py2.py3-none-any.whl.
File metadata
- Download URL: pytest_split_tests-1.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21be7d6f95291002790fe24e28faa950059694e7abc430d4993d99a4c773bde4
|
|
| MD5 |
0acb3e2e7be19c3df30fec4bc084f746
|
|
| BLAKE2b-256 |
3044aea799afbd5e346076751d3ee9943d0e0aad2a3b14fd576cd742bc0f10f4
|