Skip to content

Commit b16039c

Browse files
committed
fix: Remove explicit coverpkg github.com/coder/coder/codersdk
This package is already covered by ./...
1 parent a06bea7 commit b16039c

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/workflows/coder.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ jobs:
204204
shell: bash
205205
run: gotestsum --junitfile="gotests.xml" --packages="./..." --
206206
-covermode=atomic -coverprofile="gotests.coverage"
207-
-coverpkg=./...,github.com/coder/coder/codersdk
207+
-coverpkg=./...
208208
-timeout=5m -short -failfast
209209

210210
- name: Upload DataDog Trace

.vscode/settings.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@
117117
"go.coverOnSave": true,
118118
// The codersdk is used by coderd another other packages extensively.
119119
// To reduce redundancy in tests, it's covered by other packages.
120-
"go.testFlags": ["-short", "-coverpkg=./.,github.com/coder/coder/codersdk"],
120+
// Since package coverage pairing can't be defined, all packages cover
121+
// all other packages.
122+
"go.testFlags": ["-short", "-coverpkg=./..."],
121123
"go.coverageDecorator": {
122124
"type": "gutter",
123125
"coveredHighlightColor": "rgba(64,128,128,0.5)",

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ test: test-clean
174174
test-postgres: test-clean test-postgres-docker
175175
DB=ci DB_FROM=$(shell go run scripts/migrate-ci/main.go) gotestsum --junitfile="gotests.xml" --packages="./..." -- \
176176
-covermode=atomic -coverprofile="gotests.coverage" -timeout=30m \
177-
-coverpkg=./...,github.com/coder/coder/codersdk \
177+
-coverpkg=./... \
178178
-count=2 -race -failfast
179179
.PHONY: test-postgres
180180

0 commit comments

Comments
 (0)