Use -coverpkg with go test

Our tests aren't being executed recursively, use
this so everything gets run

Resolves #320
This commit is contained in:
Sean DuBois
2018-12-27 16:42:12 -08:00
parent eec8f43b0c
commit 09ae7da77a
2 changed files with 4 additions and 2 deletions

3
.gitignore vendored
View File

@@ -14,4 +14,5 @@ vendor/
### Files ### ### Files ###
############# #############
*.ivf *.ivf
tags tags
cover.out

View File

@@ -20,7 +20,8 @@ script:
- rm -rf examples - rm -rf examples
# Remove examples, no test coverage for them # Remove examples, no test coverage for them
- golangci-lint run - golangci-lint run
- goveralls -v -race -covermode=atomic -service=travis-ci - go test -coverpkg=$(go list ./... | tr '\n' ',') -coverprofile=cover.out -v -race -covermode=atomic ./...
- goveralls -coverprofile=cover.out -service=travis-ci
- bash .github/assert-contributors.sh - bash .github/assert-contributors.sh
- bash .github/lint-disallowed-functions-in-library.sh - bash .github/lint-disallowed-functions-in-library.sh
- bash .github/lint-commit-message.sh - bash .github/lint-commit-message.sh