Skip to content

Commit

Permalink
Update unit test target name in the Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
szaydel committed Jan 2, 2024
1 parent 94cb3a4 commit 17d2256
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: build doc cover unit-test
.PHONY: build doc cover unittest

COVERAGE_DATA_DIR := coverage
COVERAGE_FILE := $(COVERAGE_DATA_DIR)/coverage.txt
Expand All @@ -13,7 +13,7 @@ cover:
@echo "Generating library test coverage data"
@go tool cover -html=$(COVERAGE_FILE) -o $(COVERAGE_HTML_FILE)

unit-test:
unittest:
@echo "Running unit tests"
@mkdir -p $(COVERAGE_DATA_DIR) && \
go test -cover -coverpkg=./... -coverprofile $(COVERAGE_FILE) -v ./...
Expand Down

0 comments on commit 17d2256

Please sign in to comment.