-
-
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
Specify which tests to run in a scalable way #4396
Comments
Could we instead run all the tests? If it's a few thousand test files, that seems like it captures most tests. I'm a bit worried about adding yet another config option to control running of tests, the CLI is becoming a bit of a mess :( |
The issue happens when you have a filtered list of tests that is a subset of all tests. |
@cpojer i agree about CLI becoming a mess, but we really need this :( |
|
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. |
I hit a performance problem trying to run to many tests.
I call jest with
jest test1.js test2.js test3.js ... test9999.js
which eventually gets transformed into a regexp by
https://github.com/facebook/jest/blob/master/packages/jest-config/src/normalize.js#L289
and used to match agains every test file to figure out whether we want to run it or not.
It works on small runs, but when i send a few thousand test paths it slows down the process a lot.
The solution i'm thinking about is to have a
--runTestPaths
flag that will tell jest not to use regexp matching logic to find tests, but rather match by relative patch.@mjesun
The text was updated successfully, but these errors were encountered: