Skip to content

Commit 040f1a3

Browse files
committed
Skip error if below test coverage threshold
1 parent 769b492 commit 040f1a3

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Taskfile.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ tasks:
2020
- |
2121
COVERAGE=$(go tool cover -func=coverage.out | grep total | awk '{print $3}' | sed 's/%//')
2222
echo "Total coverage: $COVERAGE%"
23-
if (( $(echo "$COVERAGE < 80" | bc -l) )); then
24-
echo "Coverage is below 80% threshold"
25-
exit 1
26-
fi
2723
2824
clean:
2925
desc: Clean generated files

0 commit comments

Comments
 (0)