Skip to main content
https://img.shields.io/pypi/v/pytest-test-groups.svg https://img.shields.io/pypi/pyversions/pytest-test-groups.svg https://github.com/mark-adams/pytest-test-groups/actions/workflows/python-tests.yml/badge.svg

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

# 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

# Split the tests by files instead of items into 3 groups and run the second group.
# The groups might not be in the same size as each group contains full test files
py.test --test-group-count 10 --test-group=2 --test-group-by filename

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.

Metadata

Release files for pytest-test-groups 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytest-test-groups 1.2.1
File Size Uploaded
pytest_test_groups-1.2.1.tar.gz 8.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-test-groups 1.2.1
File Interpreter ABI Platform
pytest_test_groups-1.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 13.4 kB

Release files / pytest_test_groups-1.2.1.tar.gz

Download URL pytest_test_groups-1.2.1.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
67576b295522fc144b3a42fa1801f50ae962389e984b48bab4336686d09032f1
BLAKE2b-256 checksum
How to use checksums
9f5ac7874fe15e03d86a1109a3274b57a2473edb8a1dda4a4d27f25d848b6ff5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 8, 2025.

Transparency log

Release files / pytest_test_groups-1.2.1-py3-none-any.whl

Download URL pytest_test_groups-1.2.1-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8c7a016448f9ad347fb69a62f417f0a2358ecbf129fe44bc44ee991918a0bb73
BLAKE2b-256 checksum
How to use checksums
31ff7ff0ca5e8051931bf7fb65e31f085f7c0577615bf3a4776fb583cb471800
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 8, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

1.2.1 This release

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

0.9

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