Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
19 lines (16 sloc)
487 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
COVERAGE="python2 -m coverage" | |
python2 -c "\ | |
try: | |
import coverage | |
print('ok - python module coverage is installed') | |
except ImportError: | |
print('\nYou need to install the coverage module first, e.g. \n$ pip2 install coverage\n') | |
exit(1)" | |
$COVERAGE erase | |
$COVERAGE run -p ./tests/run-unit | |
RUNNER="$COVERAGE run -p" ./run-test-ci | |
$COVERAGE combine | |
rm -rf htmlcov | |
$COVERAGE html | |
echo "# to see coverage results, browse to file://$PWD/htmlcov/index.html" |