gotwarlost / istanbul

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

lcov report is written even when no report flag is used #768

Open ORESoftware opened 7 years ago

ORESoftware commented 7 years ago

I have this command:

 cp.spawn('istanbul',
            ['cover', file, '--dir', coverageDir, '--include-all-sources', '--'].concat(args));

I was under the impression that

'--report', 'lcov'

would cause Istanbul to output a report, but I removed that option, as you can see from the command. But still I get an lcov-report.

Is there a flag, something like '--no-report'? Seems like lcov-report is the default.

I want no report in this case, thanks!