Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 616 Bytes

CodeCoverage.md

File metadata and controls

13 lines (9 loc) · 616 Bytes

Code coverage

Another popular method for testing your code is Code Coverage.

You can use mocha and istanbul to check your code and prepare various coverage reports (HTML, Cobertura) which can be used in continuous integration services such as Jenkins.

To test your code and prepare a simple HTML report run the following commands:

istanbul cover -x "**/config/**" _mocha -- --timeout 5000
istanbul report html