View our GitHub

Please visit sails-docs on GitHub to view documentation on your mobile device.

Edit Page

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

Is something missing?

If you notice something we've missed or could be improved on, please follow this link and submit a pull request to the sails-docs repo. Once we merge it, the changes will be reflected on the website the next time it is deployed.