A pytest plugin to automatically split test execution across CircleCI parallel containers. Currently at v0.1.0, it distributes tests by timings or file path hash. Low release cadence; last release was initial.
pip install pytest-circleci-parallelizedVerified import paths — ran on the pinned version, not inferred.
Install the plugin and run pytest with --circleci-parallelize flag in a CircleCI job with parallelism > 1.
Only use in CircleCI parallel containers. For local testing, mock environment variables or run without the --circleci-parallelize flag.
Run without timings first to generate JUnit XML, then supply --store-timings to collect data.
Ensure Python version >=2.7, !=3.0-3.3.
Set environment variables manually for testing: export CIRCLE_NODE_TOTAL=2; export CIRCLE_NODE_INDEX=0. Or run pytest without --circleci-parallelize.
Check that test files follow pytest naming conventions (test_*.py) and are in the current directory. Run pytest --collect-only first.