Add code coverage

- generates a code coverage report
- triggers Coveralls on every Travis build
- adds a badge to the README
This commit is contained in:
Chris Hill-Scott
2016-04-07 10:28:29 +01:00
parent b5915dc956
commit 5c4de3d13d
5 changed files with 7 additions and 2 deletions

View File

@@ -31,8 +31,8 @@ npm test
display_result $? 2 "Front end code style check"
## Code coverage
#py.test --cov=app tests/
#display_result $? 3 "Code coverage"
py.test --cov=app --cov-report=term-missing tests/
display_result $? 3 "Code coverage"
export NOTIFY_ADMIN_ENVIRONMENT='config.Test'
py.test -v