Skip to main content

Revert “Run tests and report coverage separately”

ID
80adc7a
date
2025-05-09 08:51:05+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
4645a0b
message
Revert "Run tests and report coverage separately"

4645a0b9a3f81d54610d6db5f7199d3bcce4a53b
changed files
1 file, 12 additions, 12 deletions

Changed files

ts (2962) → ts (2986)

diff --git a/ts b/ts
index 02db7d9..75ab585 100755
--- a/ts
+++ b/ts
@@ -81,22 +81,22 @@ function run_python_tests() {
          [[ "$REPO_NAME" = "flickr-photos-api" ]] ||
          [[ "$REPO_NAME" = "analytics.alexwlchan.net" ]]
     then
-        print_info "-> pytest tests --no-cov"
-        pytest tests/ --quiet --no-cov
+        print_info "-> pytest tests"
+        pytest tests/ --quiet
     else
         print_info "-> coverage run -m pytest tests"
         coverage run -m pytest tests --quiet
-    fi
+      
+        echo ""
     
-    echo ""
-
-    print_info "-> coverage report"
-
-    if [[ $(coverage report --format=total) = "100" ]]
-    then
-        echo "100% coverage!"
-    else
-        coverage report
+        print_info "-> coverage report"
+    
+        if [[ $(coverage report --format=total) = "100" ]]
+        then
+            echo "100% coverage!"
+        else
+            coverage report
+        fi
     fi
 }