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

How can I coverage more one file ? #738

Open kevincaradant opened 7 years ago

kevincaradant commented 7 years ago

Hi

Before I was on isparta. All my files was detected but the coverage was always very low even if I do some tests, I don't know why.

So, I upgraded on istanbul but now when I write this: "coverage": "istanbul cover tmpTests/*.js",, I get an error like this: Unable to resolve file [tmpTests/*.js]. really I don't understand why ... I tried a lot of commands but I can only coverage when I specify one file in the command. When I put * somewhere, Istanbul crashs

Thank you in advance for you help

aamin3189 commented 7 years ago

I am also looking for something like that. All I want to generate a report like in the example http://gotwarlost.github.io/istanbul/public/coverage/lcov-report/index.html.

Thanks