Use coverage erase and add htmlcov to .gitignore - #288
Conversation
|
|
||
| rm -rf .coverage* | ||
| $COVERAGE erase | ||
| PATH=$PWD:$PATH $COVERAGE run -p --include=$PWD/ocropus-*,$PWD/**/* ./tests/run-unit |
There was a problem hiding this comment.
Currently, the problem is that the import ocrolib in ./tests/run-unit will use the files in /usr/local/lib/python2.7/dist-packages/ocrolib/ and not the local one. I guess this is different for the ocropus-* scripts, because they are one directory level up. @kba Any ideas how to fix this? Do we have to adjust the PATH variable here?
There was a problem hiding this comment.
You can set [paths] in coverage config, then run coverage combine to flatten the paths into the first canonical path.
There was a problem hiding this comment.
Thank you! Yes, that seems to work. I guess that the PATH construct can be deleted then as well...
| rm -rf .coverage* | ||
| $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 |
There was a problem hiding this comment.
Do we need the include here? It works also without and maybe is better not to restrict that further...?
No description provided.