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.
Not sure what your question is. "Line count" is the count of lines that have executable statements, ignoring comments, blank lines and JS that is not executable. It is not a physical count of the lines in your code.
I'm calling cli.js to generate the coverage using this command:
it generate the coverage that look like this:
but my main source file that I'm testing have 5272 lines.
I've tried to put
preserve-comments: true
in.istanbul.yml
file with no effect.I have this in my jasmine spec file: