We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98c7ac7 commit cce4958Copy full SHA for cce4958
.gitignore
@@ -3,3 +3,5 @@ vendor/*
3
coverage.out
4
count.out
5
test
6
+profile.out
7
+tmp.out
Makefile
@@ -14,7 +14,12 @@ install: deps
14
test:
15
echo "mode: count" > coverage.out
16
for d in $(TESTFOLDER); do \
17
- $(GO) test -v -covermode=count -coverprofile=profile.out $$d; \
+ $(GO) test -v -covermode=count -coverprofile=profile.out $$d > tmp.out; \
18
+ cat tmp.out; \
19
+ if grep -q "^--- FAIL" tmp.out; then \
20
+ rm tmp.out; \
21
+ exit 1;\
22
+ fi; \
23
if [ -f profile.out ]; then \
24
cat profile.out | grep -v "mode:" >> coverage.out; \
25
rm profile.out; \
0 commit comments