Closed tleunen closed 6 years ago
@tleunen it appears as if code coverage for transpiled code is all over the place right now. No two tools produce the same result 😛
This thread is a good read: https://github.com/jmcriffey/babel-istanbul/issues/56
The last comment suggests that this project is accurate, but it's pretty new and might produce accurate results in all cases.
If anyone figures out the best solution for coverage, do let me know. I'm trying to figure out what to use for the Babel boilerplate (https://github.com/babel/generator-babel-boilerplate/issues/330)
Hi @jmeas - I'm currently collaborating with @dtinth on an instrumentation library that uses his ideas in the __coverage__
plugin and preserves the behavior of istanbul's current instrumenter.
That work is going on here and it should be ready "soon".
https://github.com/istanbuljs/istanbul-lib-instrument/issues/4 https://github.com/istanbuljs/istanbul-lib-instrument/pull/5
I'm currently testing istanbul v1.0 alpha2 instead of isparta for a project but I'm getting a huge difference in the report... Same codebase, just different tool:
isparta:
istanbul: