diff --git a/Makefile b/Makefile index 6d0ecc87a01..78eb20c79d8 100644 --- a/Makefile +++ b/Makefile @@ -66,7 +66,8 @@ test: ## Run the tests of the project $(GOTEST) -v -race ./... coverage: ## Run the tests of the project and export the coverage - $(GOTEST) -cover -covermode=count -coverprofile=coverage.cov $($(GOCMD) list ./... | grep -v /vendor/ | grep -v /examples/) + $(GOTEST) -cover -covermode=count -coverprofile=coverage.cov.tmp ./... \ + && cat coverage.cov.tmp | grep -v "/examples/" > coverage.cov bench: ## Launch the benchmark test $(GOTEST) -bench Benchmark -cpu 2 -run=^$$