-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Proposal: Cypress should preprocess all of the spec files once #2304
Comments
related: #1879 |
Ok some logs/evidence: Normal v3 run completed in https://gist.github.com/paulfalgout/738a1a84d2eda1e701fcf87fa9f1fee8 However I think maybe the log names were misleading a bit.. looking at the |
Might be what #2184 is doing |
related #1915 |
I ended up doing something pretty similar: topheman/npm-registry-browser@4f7bcbe - though, I statically import the spec files. Your use of |
I'm not doing this anymore. Other perf improvements plus various parallel functions makes this far less likely to be a thing I think. |
Current behavior:
In v3 for each spec file, the preprocessor is run which has costly overhead.
Desired behavior:
In v2 since all the tests were run at once there was a single larger preprocessor event. For large test suites running the preprocessor once is significantly faster overall, which is much more noticeable in CI environments than it was locally. If possible, I'd love to see the preprocessor run once and the test splitting to happen post processing rather than processing each spec during the run.
In the meantime I've resorted to serializing the tests myself when running on CI via:
This certainly reduces some of the features of the v3 dashboard, but reduces our run time by over half. I don't think we could upgrade to v3 without it.
Versions
Cypress v3, Travis-CI, Chrome/Chromium
The text was updated successfully, but these errors were encountered: