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

Where is documentation for check-coverage/setting thresholds? #641

Closed Roam-Cooper closed 8 years ago

Roam-Cooper commented 8 years ago

"Checks the coverage of statements, functions, branches, and lines against the provided thresholds."

Solved my problem!

The command I used was "istanbul cover --include-all-sources _mocha --root build -- build/test --recursive"

The recursive flag is passed to mocha correctly this way as '--' signifies the end of a set of arguments.