diff --git a/.coveragerc b/.coveragerc index 6a18f761d2c4..dd1524307f5c 100644 --- a/.coveragerc +++ b/.coveragerc @@ -6,8 +6,6 @@ omit = */_generated/*.py # Packages in the "google.cloud" package that we don't own. */google/cloud/gapic/* -fail_under = 100 -show_missing = True exclude_lines = # Re-enable the standard pragma pragma: NO COVER diff --git a/.travis.yml b/.travis.yml index b222923baf11..4e5346d52e8b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,9 +6,12 @@ install: script: - tox -e py27 + - (cd core && tox -e py27) - tox -e py34 + - (cd core && tox -e py34) - tox -e lint - tox -e cover + - (cd core && tox -e cover) - tox -e system-tests - tox -e system-tests3 - scripts/update_docs.sh diff --git a/tox.ini b/tox.ini index 479103c7c525..1e2eba979c5f 100644 --- a/tox.ini +++ b/tox.ini @@ -12,6 +12,13 @@ covercmd = --cov=unit_tests \ --cov-config {toxinidir}/.coveragerc \ unit_tests + py.test --quiet \ + --cov=google.cloud \ + --cov=unit_tests \ + --cov-append \ + --cov-config {toxinidir}/.coveragerc \ + core/unit_tests + coverage report --show-missing --fail-under=100 [testenv] commands =