-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chunking tests across processes #2330
Comments
You can use |
Not planning on changing this at the moment. |
@chrislloyd @cpojer I know this ticket is quite old, but wanted to share this article with anyone who would like a workable (albeit hacky) way to split Jest across multiple CI containers: https://labs.contactually.com/parallelizing-jest-across-multiple-ci-containers-551e7d3e4cb0 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Do you want to request a feature or report a bug?
Feature
What is the current behavior?
While tests are executed in parallel across cores on a single machine, they can't be batched and executed across multiple processes or machines.
For large codebases with lots of tests, would could achieve better parallelization. Many CI environments provide environment variables around parallelization (
$x
of$n
). For instance, check out Buildkite's docs on parallelizing builds.Would this be something that Jest would consider supporting? Has it been attempted in the past? Are there any issues to take into consideration before attempting a PR?
The text was updated successfully, but these errors were encountered: