Skip to content

Commit

Permalink
Add [paths] to .coveragerc instead of tweaking PATH variable
Browse files Browse the repository at this point in the history
  • Loading branch information
zuphilip committed Dec 28, 2017
1 parent e75c72a commit 405b35e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .coveragerc
@@ -0,0 +1,5 @@
[paths]
source =
$PWD
$PWD/ocropus_venv/bin
/usr/local/lib/python2.7/dist-packages
4 changes: 2 additions & 2 deletions run-coverage
Expand Up @@ -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
Expand Down

0 comments on commit 405b35e

Please sign in to comment.