🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

picogrid-pytest-split-tests

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

picogrid-pytest-split-tests

A Picogrid Fork of 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.

2.0.0
Maintainers
1

Welcome to pytest-split-tests!

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.

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts