-
-
Notifications
You must be signed in to change notification settings - Fork 360
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
Combined coverage for Branches does not add up to 100% #1508
Comments
You can't mix Istanbul instrumented coverage with V8 coverage. Use the same instrumenter for both test setups. E.g. change |
@samhatoum - were you able to resolve it ? |
No, just learned to live with it and reduce the thresholds. I'd love to see it fixed |
EDIT: this issue as partly fixed by using babel instead of v8 in Jest, however the branches still do not add up to 100% despite the single report from Jest does show 100% branch coverage. More in the thread.
Link to bug demonstration repository
https://github.com/samhatoum/monorepro/tree/nyc (note the
nyc
branch`)Expected Behavior
Combined coverage from two test runs should add up 100% when one of the input coverage reports has 100% coverage
Observed Behavior
Combined coverage is reduced when the second test run contains less than 100% test coverage
Here's the report from Jest
Here's the report from Cucumber:
Here's the combined report:
.nycrc.json
package.json
scripts that produce the aboveTroubleshooting steps
cache: false
in my nyc configEnvironment Information
The text was updated successfully, but these errors were encountered: