-
-
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
Parallel coverage #3407
Parallel coverage #3407
Conversation
This changes the coverage reporter's _addUntestedFiles function to be parallelized. This speeds up coverage collection on machines with multiple cores for test suites with many untested files.
40905db
to
813cdc9
Compare
Codecov Report
@@ Coverage Diff @@
## master #3407 +/- ##
==========================================
- Coverage 64.27% 64.24% -0.03%
==========================================
Files 176 177 +1
Lines 6538 6561 +23
Branches 4 4
==========================================
+ Hits 4202 4215 +13
- Misses 2335 2345 +10
Partials 1 1
Continue to review full report at Codecov.
|
); | ||
process.exit(1); | ||
const exit = () => process.exit(1); | ||
this._dispatcher |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This being async will not work as it will keep running tests until the reporters are done. You need to wait on the result of _bailIfNeeded and return Promise.resolve()
otherwise. I'll send a fix.
if (result.sourceMapPath) { | ||
this._sourceMapStore.registerURL(path, result.sourceMapPath); | ||
|
||
const farm = workerFarm( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be able to run in band if maxWorkers is <=1.
* [CoverageReporter] Parallelize instrumentation of untested files. This changes the coverage reporter's _addUntestedFiles function to be parallelized. This speeds up coverage collection on machines with multiple cores for test suites with many untested files. * Parallel coverage (resolve conflicts)
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
based on #3309
i had to resolve some conflicts (multi runner/config splitting touched the same files)