Add unit tests to the test target

This commit is contained in:
Marc Di Luzio 2020-06-11 20:25:03 +01:00
parent 2f5863b17a
commit 1a6bd8fed9

View file

@ -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
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
go tool cover -html=/tmp/coverage-data/c.out -o /tmp/coverage.html
@echo Done, coverage data can be found in /tmp/coverage.html
.PHONY: build install test gen