Prevent go test to update go.mod

main
Elie 2021-03-31 16:35:46 +02:00
parent bfdb705803
commit 04c2c3845c
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ release:
.PHONY: test
test: deps
$(GOTEST) --format testname --junitfile unit-tests.xml -- -coverprofile=cover.out.tmp -coverpkg=.,./pkg/... ./...
$(GOTEST) --format testname --junitfile unit-tests.xml -- -mod=readonly -coverprofile=cover.out.tmp -coverpkg=.,./pkg/... ./...
cat cover.out.tmp | grep -v "mock_" > cover.out
.PHONY: coverage