Skip to content

Commit 5f347a4

Browse files
Enable race detection + test coverage in go test (#131)
* Enable race detection in go test * Remove -v flag
1 parent bb0fc47 commit 5f347a4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
before:
22
hooks:
33
- go mod download
4-
- go test -v -covermode=atomic ./pkg/...
4+
- go test -covermode=atomic -race ./pkg/...
55
builds:
66
- env:
77
- CGO_ENABLED=0

script/test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ echo "Building"
99
script/build
1010

1111
echo "Running unit tests"
12-
go test ./...
12+
go test -covermode=atomic -race ./pkg/...

0 commit comments

Comments
 (0)