Add unit tests to the test target
This commit is contained in:
parent
2f5863b17a
commit
1a6bd8fed9
1 changed files with 5 additions and 0 deletions
5
Makefile
5
Makefile
|
@ -12,8 +12,13 @@ gen:
|
||||||
protoc --proto_path pkg/accounts --go_out=plugins=grpc:pkg/accounts/ --go_opt=paths=source_relative pkg/accounts/accounts.proto
|
protoc --proto_path pkg/accounts --go_out=plugins=grpc:pkg/accounts/ --go_opt=paths=source_relative pkg/accounts/accounts.proto
|
||||||
|
|
||||||
test:
|
test:
|
||||||
|
@echo Unit tests
|
||||||
|
go test -v ./...
|
||||||
|
|
||||||
|
@echo Integration tests
|
||||||
docker-compose up --build --exit-code-from=rove-tests --abort-on-container-exit rove-tests
|
docker-compose up --build --exit-code-from=rove-tests --abort-on-container-exit rove-tests
|
||||||
go tool cover -html=/tmp/coverage-data/c.out -o /tmp/coverage.html
|
go tool cover -html=/tmp/coverage-data/c.out -o /tmp/coverage.html
|
||||||
|
|
||||||
@echo Done, coverage data can be found in /tmp/coverage.html
|
@echo Done, coverage data can be found in /tmp/coverage.html
|
||||||
|
|
||||||
.PHONY: build install test gen
|
.PHONY: build install test gen
|
||||||
|
|
Loading…
Add table
Reference in a new issue