Skip to main content

Fix a couple of bugs where ts was hiding coverage issues

ID
66d589a
date
2025-04-24 14:07:39+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
1af4b7f
message
Fix a couple of bugs where `ts` was hiding coverage issues
changed files
1 file, 2 additions, 2 deletions

Changed files

ts (1752) → ts (1749)

diff --git a/ts b/ts
index 80c2e25..8918449 100755
--- a/ts
+++ b/ts
@@ -53,13 +53,13 @@ function run_python_tests() {
     echo ""
 
     print_info "-> coverage run -m pytest tests"
-    coverage run -m pytest tests --quiet --color=no
+    coverage run -m pytest tests --quiet
     
     echo ""
     
     print_info "-> coverage report"
     
-    if [[ $(coverage report --format="100") ]]
+    if [[ $(coverage report --format=total) = "100" ]]
     then
       echo "100% coverage!"
     else