From acdc3eaf1035fd840ee5b522f98bcae6d28464e2 Mon Sep 17 00:00:00 2001 From: mzuenni Date: Sat, 7 Sep 2024 22:19:53 +0200 Subject: coverage --- test/test.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test/test.sh') diff --git a/test/test.sh b/test/test.sh index 52ffcc1..68a6370 100755 --- a/test/test.sh +++ b/test/test.sh @@ -62,8 +62,12 @@ list_missing() { fi done if [[ -v $1 ]]; then - coverage=$((100*(total-missing)/total)) + covered=$((total-missing)) + coverage=$((100*covered/total)) echo "COVERAGE=$coverage" + echo "TOTAL=$total" + echo "COVERED=$covered" + echo "MISSING=$missing" fi } -- cgit v1.2.3