Yet another JS code coverage tool that computes statement, line, function and branch coverage with module loader hooks to transparently add coverage when running tests. Supports all JS coverage use cases including unit tests, server side functional tests and browser tests. Built for scale.
Other
8.7k
stars
787
forks
source link
incorrect cobertura report for es6 codes run by babel-node #734
babel-node ./node_modules/istanbul/lib/cli.js cover tests/jasmine-runner.js report cobertura
See from both console output and lcov report, the coverage summaries are 100%.
But look from the cobertura report, it shows as below:
Many babel compiled code like anonymous_x methods are counted in unexpectedly.
"istanbul": "^1.0.0-alpha.2", "babel-cli": "6.4.5", "babel-core": "6.4.5", "babel-preset-es2015": "6.18.0",