Skip to main content

A Pytest plugin for running a subset of your tests by splitting them in to equally sized groups.

Project description

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

# 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

pytest_test_groups-1.1.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

pytest_test_groups-1.1.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

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

Hashes for pytest_test_groups-1.1.0.tar.gz
Algorithm Hash digest
SHA256 c17a445676969dd4442e1fe03acd8d8dda87bc8f3beee00a80d5d87adc33eb43
MD5 40bbf0afb11e13ae6bad17514e2dd00d
BLAKE2b-256 2043ffe71b6037b7efc7dd74ac15880198a167a46e5e917b426405c203b70e38

See more details on using hashes here.

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

Attestations:

File details

Details for the file pytest_test_groups-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_test_groups-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8210002934b1932a2a1ee94f817109610f3ff371cf48c8c08f709c2f503db71e
MD5 dc36279233261b9035dbb764c10a927e
BLAKE2b-256 66c4f94b5290f0fe9abe7e09eb55f6ebcf99acf66830ce18cf891450e4816d2e

See more details on using hashes here.

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

Attestations:

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page