1
0
mirror of https://github.com/github/octodns.git synced 2024-05-11 05:55:00 +00:00

Merge pull request #308 from github/coverage-improvements

Omit cmds from coverage, print report, enforce 100%
This commit is contained in:
Ross McFarland
2018-12-14 10:14:46 -08:00
committed by GitHub

View File

@@ -26,6 +26,11 @@ export DYN_PASSWORD=
export DYN_USERNAME=
export GOOGLE_APPLICATION_CREDENTIALS=
coverage run --branch --source=octodns `which nosetests` --with-xunit "$@"
coverage run --branch --source=octodns --omit=octodns/cmds/* `which nosetests` --with-xunit "$@"
coverage html
coverage xml
coverage report
coverage report | grep ^TOTAL| grep -qv 100% && {
echo "Incomplete code coverage"
exit 1
} || echo "Code coverage 100%"