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

ignore lines of code by specifying the line numbers #934

Open jihadrhamza opened 4 years ago

jihadrhamza commented 4 years ago

Hi all, I am new here and trying to use nyc against a big javascript file, generated by a tool. Here I want to run the code coverage by specifying area in javascript file mentioning the number of lines like below, { "start_line":100, "end_line":500 } Because, the specific tool adds lots of framework code to this javascript, where my code also present. Is there anyway to do this in nyc?

Thanks Jihad

marlo22 commented 3 years ago

Up, I have this problem too. Is there any solution?