Skip to content

Commit 623fcdb

Browse files
Update coverage to report to a file
1 parent 4cb821e commit 623fcdb

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/client-tests.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ jobs:
9898
if: (matrix.os == 'ubuntu-latest')
9999
run: |
100100
# Jenkins can perform the full jujud testing.
101-
go test -v ./cmd/juju/... -check.v
101+
go test -v ./cmd/juju/... -check.v -coverprofile=coverage.txt -covermode=atomic
102102
go test -v ./cmd/plugins/... -check.v
103103
shell: bash
104+
105+
- name: Upload coverage to Codecov
106+
if: (matrix.os == 'ubuntu-latest')
107+
run: bash <(curl -s https://codecov.io/bash)

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ endif
4343

4444
# Enable coverage testing.
4545
ifeq ($(COVERAGE_CHECK), 1)
46-
TEST_ARGS += -cover
46+
TEST_ARGS += -coverprofile=coverage.txt -covermode=atomic
4747
endif
4848

4949
# Enable verbose testing for reporting.

0 commit comments

Comments
 (0)