Permalink
Browse files

Add [paths] to .coveragerc instead of tweaking PATH variable

  • Loading branch information...
zuphilip committed Dec 28, 2017
1 parent e75c72a commit 405b35e1e07c9077c9a6d8dafc4331783ad3c71b
Showing with 7 additions and 2 deletions.
  1. +5 −0 .coveragerc
  2. +2 −2 run-coverage
@@ -0,0 +1,5 @@
[paths]
source =
$PWD
$PWD/ocropus_venv/bin
/usr/local/lib/python2.7/dist-packages
@@ -11,8 +11,8 @@ except ImportError:
exit(1)"
$COVERAGE erase
PATH=$PWD:$PATH $COVERAGE run -p --include=$PWD/ocropus-*,$PWD/**/* ./tests/run-unit
PATH=$PWD:$PATH RUNNER="$COVERAGE run -p --include=$PWD/ocropus-*,$PWD/**/*" ./run-test-ci
$COVERAGE run -p ./tests/run-unit
RUNNER="$COVERAGE run -p" ./run-test-ci
$COVERAGE combine
rm -rf htmlcov
$COVERAGE html

0 comments on commit 405b35e

Please sign in to comment.