From 284cdd0bcac4c10098d68466b4d28655bc525226 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Thu, 16 Oct 2014 03:20:09 -0500 Subject: [PATCH] Do not test or cover the external libraries directly --- .coveragerc | 2 +- tools/travis_test.sh | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.coveragerc b/.coveragerc index 992eafdc..ffab8979 100644 --- a/.coveragerc +++ b/.coveragerc @@ -6,7 +6,7 @@ source = skimage include = */skimage/* omit = */setup.py - */skimage/io/_plugins/tifffile.py + */skimage/external/* [report] exclude_lines = diff --git a/tools/travis_test.sh b/tools/travis_test.sh index 4c2db692..78d406a7 100755 --- a/tools/travis_test.sh +++ b/tools/travis_test.sh @@ -40,10 +40,9 @@ echo 'backend.qt4 : '$MPL_QT_API >> $MPL_DIR/matplotlibrc tools/header.py "Run tests with all dependencies" # run tests again with optional dependencies to get more coverage +TEST_ARGS='--exe -v --with-doctest --ignore-files="skimage/external/*"' if [[ $TRAVIS_PYTHON_VERSION == 3.3 ]]; then - export TEST_ARGS="--with-cov --cover-package skimage" -else - export TEST_ARGS="" + TEST_ARGS="$TEST_ARGS --with-cov --cover-package skimage" fi -nosetests --exe -v --with-doctest $TEST_ARGS +nosetests $TEST_ARGS