diff --git a/Makefile b/Makefile index 6eb3456fcc..c479874fa9 100644 --- a/Makefile +++ b/Makefile @@ -228,12 +228,36 @@ test\:http: test\:names: gotestsum --format testname -- $(DEFAULT_TEST_DIRECTORIES) $(TEST_FLAGS) +.PHONY: test\:lens +test\:lens: + @$(MAKE) deps:lens + gotestsum --format testname -- ./$(LENS_TEST_DIRECTORY)/... $(TEST_FLAGS) + +.PHONY: test\:lens-quick +test\:lens-quick: + @$(MAKE) deps:lens + gotestsum --format testname -- ./$(LENS_TEST_DIRECTORY)/... + +.PHONY: test\:cli +test\:cli: + gotestsum --format testname -- ./$(CLI_TEST_DIRECTORY)/... $(TEST_FLAGS) + +.PHONY: test\:cli-quick +test\:cli-quick: + gotestsum --format testname -- ./$(CLI_TEST_DIRECTORY)/... + .PHONY: test\:all test\:all: @$(MAKE) test:names @$(MAKE) test:lens @$(MAKE) test:cli +.PHONY: test\:all-quick +test\:all-quick: + @$(MAKE) test:quick + @$(MAKE) test:lens-quick + @$(MAKE) test:cli-quick + .PHONY: test\:verbose test\:verbose: gotestsum --format standard-verbose -- $(DEFAULT_TEST_DIRECTORIES) $(TEST_FLAGS) @@ -258,16 +282,6 @@ test\:bench-short: test\:scripts: @$(MAKE) -C ./tools/scripts/ test -.PHONY: test\:lens -test\:lens: - @$(MAKE) deps:lens - gotestsum --format testname -- ./$(LENS_TEST_DIRECTORY)/... $(TEST_FLAGS) - -.PHONY: test\:cli -test\:cli: - @$(MAKE) deps:lens - gotestsum --format testname -- ./$(CLI_TEST_DIRECTORY)/... $(TEST_FLAGS) - # Using go-acc to ensure integration tests are included. # Usage: `make test:coverage` or `make test:coverage path="{pathToPackage}"` # Example: `make test:coverage path="./api/..."`