Skip to main content

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

picogrid_pytest_split_tests-2.0.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

picogrid_pytest_split_tests-2.0.0-py2.py3-none-any.whl (4.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file picogrid_pytest_split_tests-2.0.0.tar.gz.

File metadata

File hashes

Hashes for picogrid_pytest_split_tests-2.0.0.tar.gz
Algorithm Hash digest
SHA256 b6ab8c23a4d63cd61c47f4726e5d445e0dcba8ba3f8b1f9ea3f26b320cdb460d
MD5 8bf4d85f0d9aa598984c4d2ef301f8ff
BLAKE2b-256 359e78b762f193d7d40a3037d56add5c10065e9caad69a9d06b929b5a9f88599

See more details on using hashes here.

File details

Details for the file picogrid_pytest_split_tests-2.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for picogrid_pytest_split_tests-2.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fed1c8303f7b64597f9350e2ba0f2937dea490fb52f14e619828b5fd56539235
MD5 cb566f3b316bbff9e44efdb92a036e77
BLAKE2b-256 52a3c0180022781911c3838a08e6ea3c9378448f8796201d5ba21e04bed756ad

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page