Browse Source

Merge pull request #308 from github/coverage-improvements

Omit cmds from coverage, print report, enforce 100%
pull/310/head
Ross McFarland 7 years ago
committed by GitHub
parent
commit
3e7edc8336
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      script/coverage

+ 6
- 1
script/coverage 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%"

Loading…
Cancel
Save