Skip to content

Commit

Permalink
Exclude mock.go from coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Duchesne committed Jul 17, 2019
1 parent fe6e365 commit becd438
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ echo "" > coverage.txt
for d in $(go list ./... | grep -v vendor); do
go test -coverprofile=profile.out -covermode=atomic $d
if [ -f profile.out ]; then
cat profile.out >> coverage.txt
cat profile.out | grep -v "_mock.go" >> coverage.txt
rm profile.out
fi
done

0 comments on commit becd438

Please sign in to comment.