Skip to main content

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

Project description

Build Status

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-grouping-1.0.3b0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

pytest_test_grouping-1.0.3b0-py2.py3-none-any.whl (4.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pytest-test-grouping-1.0.3b0.tar.gz.

File metadata

File hashes

Hashes for pytest-test-grouping-1.0.3b0.tar.gz
Algorithm Hash digest
SHA256 931921785c75d26449a5d9470c090540348e733771c56c7d55abf33cfa48adf0
MD5 ef0ea5dd37776536a54b56b2a1805f26
BLAKE2b-256 e99ce391b0d28781b7a6fd683f80cc19d18b65942dfb6c7ce7e29b48735ee3f9

See more details on using hashes here.

File details

Details for the file pytest_test_grouping-1.0.3b0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_test_grouping-1.0.3b0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 33f1dc5ed6098044f17a50c211b0445d58ee6d2b26c9fa35e2269368d2f32722
MD5 156dc6a0b876b367660850a44efdc4ad
BLAKE2b-256 86bdbc1213c0997a7f599c7e145853256a1951680de47bb3ed56b153f257ecac

See more details on using hashes here.

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