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 786 forks source link

Handle errors when instrumenting 'all sources' #651

Open ciaranj opened 8 years ago

ciaranj commented 8 years ago

Addresses an issue where the coverage report would silently fail if it attempted to instrument a file that was 'invalid' for some reason.

Whilst that error once determined was easy enough to rectify (exclusion rules.) The fact that it silently exited meant it was hard to determine the cause.

This change ignores any erroring files, but logs the file out to the console.