$npx skillfedfor your agent

pytest-test-groups

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

With conditionsPyPI TestingReleased May 20251.6M downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pytest_test_groups-1.2.1-py3-none-any.whl
v1.2.1 · released 2025-05-08 · Python >=3.8 · 1 runtime deps: pytest

Yes, if you need to parallelize test execution in CI. The plugin is stable (Production/Stable classifier), has no known vulnerabilities, and low install friction. However, maintenance is aging—last commit was 2025-07-29. Verify compatibility with your pytest and Python versions before adopting.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low install friction; depends only on pytest.
  • Maintenance status is aging—last commit was 2025-07-29, though the repository remains active and not archived.

License · maintenance · safety

permissive license (permissive) — MIT license (permissive). You may use, modify, and distribute this package freely in commercial or private projects, provided you include the license notice.

last release 2025-05-08 (463 days) · last repo commit 2025-07-29 · 61 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,559,786 downloads/mo, #3,762 on PyPI

Verify before relying

pip install pytest-test-groups

# Split tests into 10 groups and run group 2
pytest --test-group-count 10 --test-group=2
  • Whether the aging maintenance status affects compatibility with recent pytest versions or Python releases.
  • How test grouping behaves with parameterized tests or dynamic test discovery.
  • Real-world performance impact when distributing tests across many CI workers.
Same gist for agents: .md · .json

What it is and what it does

pytest-test-groups is a pytest plugin that partitions your test suite into equally-sized groups, allowing you to run a single group at a time. This is primarily designed for CI environments where you want to distribute test execution across multiple workers or machines—instead of running all tests on one worker, you can split them into groups and have multiple CI jobs each run one group in parallel, reducing overall test time.

The plugin works by adding command-line options to pytest: you specify a total group count and which group number to run. It can partition tests by individual test items (the default) or by filename, and supports pseudo-random assignment of tests to groups via a seed parameter. It depends only on pytest and has low install friction.

Use it for

  • Distribute a large test suite across multiple CI workers to reduce total test time.
  • Split long-running test jobs into smaller parallel jobs in GitHub Actions, GitLab CI, or similar platforms.
  • Run a specific subset of tests locally for debugging without running the entire suite.
  • Balance test load across CI agents when test execution time varies significantly between groups.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need to parallelize test execution in CI.

The plugin is stable (Production/Stable classifier), has no known vulnerabilities, and low install friction. However, maintenance is aging—last commit was 2025-07-29. Verify compatibility with your pytest and Python versions before adopting.

Install

pytest-test-groups on PyPI

Before you install

Low install friction; depends only on pytest. Maintenance status is aging—last commit was 2025-07-29, though the repository remains active and not archived.

License in practice

MIT license (permissive). You may use, modify, and distribute this package freely in commercial or private projects, provided you include the license notice.

Quickstart

pip install pytest-test-groups

# Split tests into 10 groups and run group 2
pytest --test-group-count 10 --test-group=2

Verify before relying

  • Whether the aging maintenance status affects compatibility with recent pytest versions or Python releases.
  • How test grouping behaves with parameterized tests or dynamic test discovery.
  • Real-world performance impact when distributing tests across many CI workers.

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >=3.8
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
pytest
MaintenanceAging 463 days since the last release
Last repo commit
First released
Downloads1,559,786 / month, #3,762 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Testing

Evidence: pytest_test_groups-1.2.1-py3-none-any.whl

Tags

Capabilities
pytest test groupingsplit tests into groupsparallel test executionpytest ci parallelizationdistribute tests across workerspytest test partitioning
Topics
ci-parallelizationtest-distribution

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “split tests into groups”

  • pytest-test-groupspytest-test-groups is a pytest plugin that splits your test suite…
  • pytest-split-testsA pytest plugin that splits your test suite into equal-sized groups…
  • pytest-splitA pytest plugin that divides a test suite into balanced groups based…

Give your agent the search over MCP, or paste the wish link into any chat.

More Testing packages

pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.

MITpure Python · 3.10+
1.1Bdownloads / mo
virtualenv Worth it
PyPI · Libraries · released Aug 2026

virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.

MITpure Python · 3.9+
532.9Mdownloads / mo
coverage Worth it
PyPI · Testing · released Aug 2026

Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.

Install it if you want to measure test completeness or enforce coverage thresholds in your project.

permissive licensepure Python · 3.10+
335.8Mdownloads / mo
pytest-asyncio Worth it
PyPI · Testing · released May 2026

pytest-asyncio is a pytest plugin that enables writing and running async test functions using the asyncio library, allowing developers to await code directly within test cases.

Install it if you write tests for any asyncio-based code.

Apache-2.0pure Python · 3.10+
275.9Mdownloads / mo
pytest-json-ctrf Worth it
PyPI · Testing · released Jul 2026

A pytest plugin that generates test reports in Common Test Report Format (CTRF) as JSON, compatible with pytest-xdist and pytest-playwright for distributed and browser-based testing.

Install it if you need CTRF-formatted test output for CI/CD integration or cross-tool reporting.

MITpure Python · 3.8+
273.0Mdownloads / mo

See also pytest-split-tests · pytest-circleci-parallelized · pytest-split · pytest-shard · pytest-xdist · concurrencytest · pytest-parallel · pytest-mypy · pytest-progress · pytest-cache