github.com/kubeshop/testkube@v1.17.23/contrib/executor/zap/Makefile (about) 1 NAME ?= testkube-zap-executor 2 BIN_DIR ?= $(HOME)/bin 3 NAMESPACE ?= "default" 4 5 build: 6 go build -o $(BIN_DIR)/$(NAME) cmd/agent/main.go 7 8 .PHONY: test cover build 9 10 run: 11 EXECUTOR_PORT=8082 go run cmd/agent/main.go 12 13 docker-build: 14 docker build -t kubeshop/$(NAME) -f build/agent/Dockerfile . 15 16 test: 17 go test ./... -cover 18 19 cover: 20 @go test -failfast -count=1 -v -tags test -coverprofile=./testCoverage.txt ./... && go tool cover -html=./testCoverage.txt -o testCoverage.html && rm ./testCoverage.txt 21 open testCoverage.html