Skip to content

Commit 5d38ef7

Browse files
committed
Add test target
1 parent 83c47b1 commit 5d38ef7

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Makefile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,17 @@ tidy: ## Update dependencies
4646
clean: ## Clean up the build artifacts
4747
$(Q)rm -rf build
4848

49+
##############################
50+
# Tests #
51+
##############################
52+
53+
##@ Tests
54+
55+
# Static tests.
56+
.PHONY: test test-unit
57+
58+
test: test-unit ## Run the tests
59+
60+
TEST_PKGS:=$(shell go list ./...)
61+
test-unit: ## Run the unit tests
62+
$(Q)go test -short ${TEST_PKGS}

0 commit comments

Comments
 (0)