Skip to content

Commit

Permalink
test: run all and report if any failed
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed Mar 1, 2024
1 parent 32934ff commit 01d5be3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,16 @@ test: deps install
do \
go test -count=1 -v -coverprofile=profile.out -covermode=atomic $$d; \
if [ $$? != 0 ]; then \
exit 1; \
export FAILURE=1; \
fi; \
if [ -f profile.out ]; then \
cat profile.out | tail -n +2 >> coverage.txt; \
rm profile.out; \
fi; \
done; \
if [ $$FAILURE -eq 1 ]; then \
exit 1; \
fi;
go tool cover -func coverage.txt


Expand Down

0 comments on commit 01d5be3

Please sign in to comment.