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

Root option in Istanbul #895

Open ridhamalik opened 5 years ago

ridhamalik commented 5 years ago

I want to provide source root path to istanbul for which I need coverage report. I am using istanbul with floss. Here given below is command that I am using but when I run its says No coverage information was collected, exit without writing coverage information

Command istanbul cover --include-all-sources --root ../core/frontend/lib bin/testbed.js

In testbed.js I have code that runs the tests using floss. Suggest me a solution please