Skip to content

Commit

Permalink
Added -coverpkg to correct code coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
zoeyfyi committed Apr 17, 2017
1 parent f4e30d3 commit 19122f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 19122f3

Please sign in to comment.