DoSomethingArchive / quicksilver-api

:postbox: API gateway to Quicksilver (Message Broker) functionality.
MIT License
0 stars 3 forks source link

Add Code Coverage #30

Closed deezone closed 8 years ago

deezone commented 8 years ago

http://sailsjs.org/documentation/concepts/testing/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

Resources: