diff --git a/Makefile b/Makefile index 6f3abb7b9..42c8a4736 100644 --- a/Makefile +++ b/Makefile @@ -21,12 +21,11 @@ DOCKER_IMAGE ?= $(DOCKER_REGISTRY)/$(DOCKER_IMAGE_PREFIX)/$(DOCKER_IMAGE_ DOCKER_TARGET_STAGE ?= release # go options -PKG := ./... -TESTS := . -TEST_FLAGS := -COVER_FLAGS := -COVER_PROFILE := cover.out -COVER_PKG := $(shell go list ./... | tail -n+2 | grep -v "opendev.org/airship/airshipctl/testutil" | paste -sd"," -) +PKG ?= ./... +TESTS ?= . +TEST_FLAGS ?= +COVER_FLAGS ?= +COVER_PROFILE ?= cover.out .PHONY: get-modules get-modules: @@ -48,7 +47,7 @@ unit-tests: @echo "All unit tests passed" .PHONY: cover -cover: COVER_FLAGS = -covermode=atomic -coverprofile=$(COVER_PROFILE) -coverpkg=$(COVER_PKG) +cover: COVER_FLAGS = -covermode=atomic -coverprofile=$(COVER_PROFILE) cover: unit-tests @./tools/coverage_check $(COVER_PROFILE)