Skip to content

Commit

Permalink
chore(make): update Makefile
Browse files Browse the repository at this point in the history
- Update go test command in 'test' target of Makefile
- Add -covermode=atomic and -race flags to go test command in 'test' target of Makefile
- Update go tool cover command in 'cover' target of Makefile
  • Loading branch information
guanguans committed Nov 17, 2023
1 parent cb6eaf4 commit 842cd58
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ tests.go
coverage.xml
/scripts/address*
/scripts/additional*
/coverage
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ vet:
go vet ./..。

test:
go test ./... -cover -coverprofile=cover.out -v
go test ./... -cover -coverprofile=coverage -covermode=atomic -race -v

bench:
go test ./... -bench=. -benchmem -v

cover:
go tool cover -html=cover.out
go tool cover -html=coverage

0 comments on commit 842cd58

Please sign in to comment.