mirror of
https://github.com/3ybactuk/marketplace-go-service-project.git
synced 2025-10-30 14:03:45 +03:00
[hw-2] add tests, coverage, benchmarks
This commit is contained in:
@@ -1,8 +1,14 @@
|
||||
BINDIR=${CURDIR}/bin
|
||||
PACKAGE=route256/cart
|
||||
|
||||
PKGS = $(shell go list ./... | grep -vE 'mock|config|generated|header|document|internal/pb')
|
||||
|
||||
bindir:
|
||||
mkdir -p ${BINDIR}
|
||||
|
||||
build: bindir
|
||||
echo "build cart"
|
||||
|
||||
coverage:
|
||||
@go test -race -coverprofile=coverage.txt -covermode=atomic $(PKGS)
|
||||
@go tool cover -html=coverage.txt -o coverage.html
|
||||
|
||||
Reference in New Issue
Block a user