We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cb821e commit 623fcdbCopy full SHA for 623fcdb
.github/workflows/client-tests.yml
@@ -98,6 +98,10 @@ jobs:
98
if: (matrix.os == 'ubuntu-latest')
99
run: |
100
# Jenkins can perform the full jujud testing.
101
- go test -v ./cmd/juju/... -check.v
+ go test -v ./cmd/juju/... -check.v -coverprofile=coverage.txt -covermode=atomic
102
go test -v ./cmd/plugins/... -check.v
103
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
@@ -43,7 +43,7 @@ endif
43
44
# Enable coverage testing.
45
ifeq ($(COVERAGE_CHECK), 1)
46
- TEST_ARGS += -cover
+ TEST_ARGS += -coverprofile=coverage.txt -covermode=atomic
47
endif
48
49
# Enable verbose testing for reporting.
0 commit comments