Skip to content

Commit

Permalink
Change coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Poignant <[email protected]>
  • Loading branch information
thomaspoignant committed Mar 17, 2023
1 parent 56ad657 commit 0d5c0f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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=^$$
Expand Down

0 comments on commit 0d5c0f9

Please sign in to comment.