Commit 6b3285b7 authored by Brad Davidson's avatar Brad Davidson Committed by Brad Davidson

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

parent c8331835
...@@ -19,7 +19,7 @@ jobs: ...@@ -19,7 +19,7 @@ jobs:
fetch-depth: 1 fetch-depth: 1
- name: Run Unit Tests - name: Run Unit Tests
run: | run: |
go test ./pkg/... -coverprofile coverage.out go test -coverpkg=./... -covermode=atomic -coverprofile=coverage.out ./pkg/...
go tool cover -func coverage.out go tool cover -func coverage.out
- name: On Failure, Launch Debug Session - name: On Failure, Launch Debug Session
if: ${{ failure() }} if: ${{ failure() }}
......
#!/bin/bash #!/bin/bash
go test -cover -v ./pkg/... go test -cover -coverpkg=./... -covermode=atomic -v ./pkg/...
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment