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
Merging v8 coverage and istanbul coverage gives NaN
#144
Labels
Comments
dmail
pushed a commit
to jsenv/core
that referenced
this issue
May 3, 2021
dmail
pushed a commit
to jsenv/core
that referenced
this issue
May 4, 2021
By default node v8 will be preferred to collect coverage. Padding coveragePreferIstanbul is meant to be used if multiple coverage sources are used and some of these sources report using istanbul format. This is because both formats are incompatible. See istanbuljs/v8-to-istanbul#144
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hell there,
I am merging two coverages: first come from v8 and was converted to istanbul format, second from istanbul itself.
When I merge the two with the following code, I end up with incorrect data
coverageFromIstanbul
coverageFromV8ConvertedToIstanbul
mergeResult
The v8 coverage comes from executing the file on Node.js with NODE_V8_COVERAGE enabled.
The istanbul coverage comes from executing a file instrumented by istanbul on Firefox.
The file source code is here
The text was updated successfully, but these errors were encountered: