[runtests] Clean up coverage report + add it to runtests.sh
runtests.sh now also reports coverage.
This commit is contained in:
parent
6dbe440cb5
commit
7be8df222d
2 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,12 @@
|
||||||
[run]
|
[run]
|
||||||
omit =
|
omit =
|
||||||
tests/*
|
tests/*
|
||||||
|
*mock*
|
||||||
|
*funcsigs*
|
||||||
|
*pbr*
|
||||||
|
*six*
|
||||||
|
|
||||||
|
[report]
|
||||||
|
exclude_lines =
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
echo "testing with $(python2 -V 2>&1)"
|
echo "testing with $(python2 -V 2>&1)"
|
||||||
python2 $(which nosetests) --rednose -v tests/
|
python2 $(which nosetests) --rednose -v --with-coverage --cover-erase tests/
|
||||||
|
|
||||||
if [ $? == 0 ]; then
|
if [ $? == 0 ]; then
|
||||||
echo
|
echo
|
||||||
|
|
||||||
echo "testing with $(python3 -V 2>&1)"
|
echo "testing with $(python3 -V 2>&1)"
|
||||||
python3 $(which nosetests-3) --rednose -v tests/
|
python3 $(which nosetests-3) --rednose -v --with-coverage --cover-erase tests/
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue