Ahem. Still running black?
[python_utils.git] / tests / run_tests.sh
index 7ab316c88151bd309c0160b60b394f60ef7b823a..8af47490d372a07ea334804aa5f7a22b009ec58e 100755 (executable)
@@ -8,6 +8,7 @@ UNITTEST=0
 INTEGRATION=0
 FAILURES=0
 TESTS_RUN=0
+COVERAGE=0
 
 dup() {
     if [ $# -ne 2 ]; then
@@ -28,7 +29,7 @@ make_header() {
     local title="$1"
     local title_len=${#title}
     title_len=$((title_len + 4))
-    local width=76
+    local width=70
     local left=4
     local right=$(($width-($title_len+$left)))
     local color="$2"
@@ -153,11 +154,16 @@ fi
 
 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 "Note: to recall this report without run-running the tests, invoke:"
+    echo "To recall this report w/o run-running the tests:"
     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