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

Question: Include certain node_moduls #885

Open pingynator opened 6 years ago

pingynator commented 6 years ago

Is it possible to include certain node_modules for test-coverage?

Something like: istanbul cover test.js -include="./node_modules/myModule/mathLib.js"