scripts: fix the command for checking coverage under 100%
- ID
4da90a4- date
2026-07-26 21:24:58+00:00- author
Alex Chan <alex@alexwlchan.net>- parent
6b1a1dd- message
scripts: fix the command for checking coverage under 100%- changed files
1 file, 2 additions, 2 deletions
Changed files
scripts/run_javascript_data_files_tests.sh (649 → 671)
diff --git a/scripts/run_javascript_data_files_tests.sh b/scripts/run_javascript_data_files_tests.sh
index 2d8cec2..65fb396 100755
--- a/scripts/run_javascript_data_files_tests.sh
+++ b/scripts/run_javascript_data_files_tests.sh
@@ -12,12 +12,12 @@ run_command() {
report_coverage() {
echo ""
- echo -e "\033[34m-> python3 -m coverage report\033[0m"
+ echo -e "\033[34m-> python3 -m coverage report --format=total\033[0m"
if [[ $(python3 -m coverage report --format=total) = "100" ]]
then
echo "100% coverage!"
else
- python3 -m coverage
+ python3 -m coverage report
fi
}