github: Fix go test coverage report
The go test coverage report does not cover other packages unless you list them with the -coverpkg= argument. This results in an incomplete coverage report with oddly missing lines. This commit lists all of the packages so that they will all be included when running the tests and gathering the results.
This commit is contained in:
parent
62f61d34c2
commit
3c312b9bbd
1 changed files with 1 additions and 1 deletions
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
|
|
@ -44,7 +44,7 @@ jobs:
|
|||
run: $(go env GOPATH)/bin/golangci-lint run
|
||||
|
||||
- name: Run unit tests
|
||||
run: go test -v -race -covermode atomic -coverprofile=coverage.txt ./...
|
||||
run: go test -v -race -covermode=atomic -coverprofile=coverage.txt -coverpkg=./... ./...
|
||||
|
||||
- name: Send coverage to codecov.io
|
||||
run: bash <(curl -s https://codecov.io/bash)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue