Simple study of a test suite composed by Mocha + Supertest + Chai + Instanbul.
- Run commands:
-
npm install
-
npm run coverage
-
You should see this text output:
Open the index.html generated in coverage/index.html and click in mochatest/routes, you should see a page like this:
It shows you the tested files, you can see this by clicking in operations.js:
You can clearly see the uncovered lines/branches there.