projects
/
python_utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4e9d232
)
Improve run_tests.sh
author
Scott
<
[email protected]
>
Mon, 24 Jan 2022 23:55:24 +0000
(15:55 -0800)
committer
Scott
<
[email protected]
>
Mon, 24 Jan 2022 23:55:24 +0000
(15:55 -0800)
tests/run_tests.sh
patch
|
blob
|
history
diff --git
a/tests/run_tests.sh
b/tests/run_tests.sh
index 7ab316c88151bd309c0160b60b394f60ef7b823a..691216b99353821034ddf05d11c5c23b35d27b3a 100755
(executable)
--- a/
tests/run_tests.sh
+++ b/
tests/run_tests.sh
@@
-28,7
+28,7
@@
make_header() {
local title="$1"
local title_len=${#title}
title_len=$((title_len + 4))
local title="$1"
local title_len=${#title}
title_len=$((title_len + 4))
- local width=7
6
+ local width=7
0
local left=4
local right=$(($width-($title_len+$left)))
local color="$2"
local left=4
local right=$(($width-($title_len+$left)))
local color="$2"
@@
-153,11
+153,16
@@
fi
if [ ${COVERAGE} -eq 1 ]; then
make_header "Code Coverage Report" "${GREEN}"
if [ ${COVERAGE} -eq 1 ]; then
make_header "Code Coverage Report" "${GREEN}"
- coverage report --omit=config-3.8.py --sort=-cover
+ coverage report --omit=config-3.8.py
,*_test.py
--sort=-cover
echo
echo
- echo "
Note: to recall this report without run-running the tests, invoke
:"
+ echo "
To recall this report w/o run-running the tests
:"
echo
echo
- echo " $ coverage report --omit=config-3.8.py --sort=-cover"
+ echo " $ coverage report --omit=config-3.8.py,*_test.py --sort=-cover"
+ echo
+ echo "...from the 'tests' directory. Note that subsequent calls to "
+ echo "run_tests.sh with --coverage will klobber previous results. See:"
+ echo
+ echo " https://coverage.readthedocs.io/en/6.2/"
echo
fi
echo
fi