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 to ignore the log statements in istanbul #789

Open sunfeng90 opened 7 years ago

sunfeng90 commented 7 years ago

Hi, how to ignore the log statements when testing in mocha or karma.I test the project these days, but i cannot want to update or write the test files and to ignore the log statements when testing. Help me ,thanks!

sunfeng90 commented 7 years ago

I don't want to write "/istanbul ignore next/ " in every files, but i want to ignore same type statements in my project.How to do? Thanks!

sunfeng90 commented 7 years ago

Hi,man! How to ignore the log statements in the project once time?I don't want to ignore the same satements in the project again and again.