{"id":13592559,"url":"https://github.com/kevlened/pytest-parallel","last_synced_at":"2025-10-21T06:03:44.897Z","repository":{"id":41403725,"uuid":"132207559","full_name":"kevlened/pytest-parallel","owner":"kevlened","description":"A pytest plugin for parallel and concurrent testing","archived":true,"fork":false,"pushed_at":"2024-05-29T15:45:11.000Z","size":157,"stargazers_count":313,"open_issues_count":64,"forks_count":60,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-10-29T01:12:14.285Z","etag":null,"topics":["concurrent","parallel","pytest"],"latest_commit_sha":null,"homepage":"https://github.com/browsertron/pytest-parallel/issues/104#issuecomment-1293941066","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kevlened.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-05T02:29:51.000Z","updated_at":"2024-07-28T08:21:23.000Z","dependencies_parsed_at":"2024-06-12T16:28:30.367Z","dependency_job_id":"a868df03-0aac-4e30-b1f0-900521f77b57","html_url":"https://github.com/kevlened/pytest-parallel","commit_stats":{"total_commits":63,"total_committers":11,"mean_commits":"5.7272727272727275","dds":0.6031746031746033,"last_synced_commit":"458d63d78acc00d13d3211c993190a5612893ca4"},"previous_names":["browsertron/pytest-parallel"],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevlened%2Fpytest-parallel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevlened%2Fpytest-parallel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevlened%2Fpytest-parallel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevlened%2Fpytest-parallel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kevlened","download_url":"https://codeload.github.com/kevlened/pytest-parallel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223346843,"owners_count":17130517,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["concurrent","parallel","pytest"],"created_at":"2024-08-01T16:01:10.731Z","updated_at":"2025-10-21T06:03:44.542Z","avatar_url":"https://github.com/kevlened.png","language":"Python","readme":"## Maintainers needed\n\n[The project is currently unmaintained](https://github.com/browsertron/pytest-parallel/issues/104#issuecomment-1293941066)\n\n# pytest-parallel\na pytest plugin for parallel and concurrent testing\n\n## What?\n\nThis plugin makes it possible to run tests quickly using multiprocessing (parallelism) and multithreading (concurrency).\n\n## Why?\n\n`pytest-xdist` is great to run tests that:\n  1. aren't threadsafe\n  2. perform poorly when multithreaded\n  3. need state isolation\n\n`pytest-parallel` is better for some use cases (like Selenium tests) that:\n  1. can be threadsafe\n  2. can use non-blocking IO for http requests to make it performant\n  3. manage little or no state in the Python environment\n\nPut simply, `pytest-xdist` does parallelism while `pytest-parallel` does parallelism and concurrency.\n\n## Requirements\n\n* Python3 version [3.6+]\n* Unix or Mac for `--workers`\n* Unix, Mac, or Windows for `--tests-per-worker`\n\n## Installation\n\n`pip install pytest-parallel`\n\n## Options\n\n* `workers` (optional) - max workers (aka processes) to start. Can be a **positive integer or `auto`** which uses one worker per core. **Defaults to 1**.\n* `tests-per-worker` (optional) - max concurrent tests per worker. Can be a **positive integer or `auto`** which evenly divides tests among the workers up to 50 concurrent tests. **Defaults to 1**.\n\n## Examples\n\n```bash\n# runs 2 workers with 1 test per worker at a time\npytest --workers 2\n\n# runs 4 workers (assuming a quad-core machine) with 1 test per worker\npytest --workers auto\n\n# runs 1 worker with 4 tests at a time\npytest --tests-per-worker 4\n\n# runs 1 worker with up to 50 tests at a time\npytest --tests-per-worker auto\n\n# runs 2 workers with up to 50 tests per worker\npytest --workers 2 --tests-per-worker auto\n```\n\n## Notice\n\nBeginning with Python 3.8, forking behavior is forced on macOS at the expense of safety.\n\n    Changed in version 3.8: On macOS, the spawn start method is now the default. The fork start method should be considered unsafe as it can lead to crashes of the subprocess. See bpo-33725.\n\n[Source](https://docs.python.org/3/library/multiprocessing.html#contexts-and-start-methods)\n\n## License\n\nMIT\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevlened%2Fpytest-parallel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevlened%2Fpytest-parallel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevlened%2Fpytest-parallel/lists"}