Testing is run with MochaJS and uses ChaiJS assert. All unit tests should go under the test/
directory and should be named to match up with files in app/
.
To run unit tests, run:
npm test
This will also generate code coverage reports in ./coverage/
. Unit Tests will automatically fail if Code Coverage reports fall below the following thresholds:
- Statements: 70%
- Branches: 70%
- Functions: 70%
- Lines: 70%
Documentation is automatically generates everytime you run npm start
and can be accessed via http://127.0.0.1:5000/docs/.