Fix coverage reporting to include all packages, not just those with tests

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
This commit is contained in:
Brad Davidson 2021-07-01 15:54:03 -07:00 committed by Brad Davidson
parent c833183517
commit 6b3285b7e3
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ jobs:
fetch-depth: 1
- name: Run Unit Tests
run: |
go test ./pkg/... -coverprofile coverage.out
go test -coverpkg=./... -covermode=atomic -coverprofile=coverage.out ./pkg/...
go tool cover -func coverage.out
- name: On Failure, Launch Debug Session
if: ${{ failure() }}

View File

@ -1,2 +1,2 @@
#!/bin/bash
go test -cover -v ./pkg/...
go test -cover -coverpkg=./... -covermode=atomic -v ./pkg/...