From 19122f31625cacc6d011f2d4c9aedd12b87035aa Mon Sep 17 00:00:00 2001 From: Ben Sheffield Date: Mon, 17 Apr 2017 12:41:37 +0100 Subject: [PATCH] Added -coverpkg to correct code coverage. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 39381a41c..6f2adfb86 100644 --- a/.travis.yml +++ b/.travis.yml @@ -41,7 +41,7 @@ script: echo "" > coverage.txt for d in $(go list ./... | grep -v vendor); do - go test -race -coverprofile=profile.out -covermode=atomic $d + go test -race -coverprofile=profile.out -coverpkg -covermode=atomic $d if [ -f profile.out ]; then cat profile.out >> coverage.txt rm profile.out