chore: switch to go tools, add test-coverage and race test
This commit is contained in:
12
Makefile
12
Makefile
@@ -1,11 +1,19 @@
|
||||
test:
|
||||
test: test-unit test-race test-coverage
|
||||
|
||||
test-unit:
|
||||
go test ./pkg/... -coverprofile=coverage.out
|
||||
|
||||
test-race:
|
||||
go test ./pkg/... -race
|
||||
|
||||
test-coverage:
|
||||
go tool gcov2lcov -infile coverage.out > lcov.info
|
||||
|
||||
build:
|
||||
go build
|
||||
|
||||
lint:
|
||||
golint ./...
|
||||
go tool golint ./...
|
||||
|
||||
run:
|
||||
make build
|
||||
|
||||
Reference in New Issue
Block a user