From 13dc0e4e970cb18e396048ddb67c3a1480f6fc8b Mon Sep 17 00:00:00 2001 From: Lance Bragstad Date: Thu, 18 Sep 2025 09:32:41 -0500 Subject: [PATCH 1/2] CMP-3739: Add a noop integration test target We're setting up the ability to run integration tests that exercise how the library works against a real OpenShift cluster in https://github.com/openshift/release/pull/69409. This commit adds a new make target so that we can run integration tests in isolation, making it easier to have dedicated jobs for specific test scenarios. --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 2497e07..38ea4b0 100644 --- a/Makefile +++ b/Makefile @@ -22,6 +22,10 @@ test-coverage: go test ./... -coverprofile=coverage.out go tool cover -html=coverage.out -o coverage.html +# Run integration tests +.PHONY: test-integration +test-integration: + @echo "Integration tests not implemented yet" # Format code .PHONY: fmt @@ -50,6 +54,7 @@ help: @echo "Build & Test:" @echo " test - Run tests" @echo " test-coverage - Run tests with coverage report" + @echo " test-integration - Run integration tests (noop)" @echo "" @echo "Code Quality:" @echo " fmt - Format code" From b561f5d7b806379c6a510ef32821a7e3a630198b Mon Sep 17 00:00:00 2001 From: Lance Bragstad Date: Thu, 18 Sep 2025 09:36:43 -0500 Subject: [PATCH 2/2] CMP-3739: Update `make test` to `make test-unit` We want the ability to run unit tests separately from integration tests. Update the `make test` to specifically run unit tests, leaving room for integration tests to run separately, since they have different environment requirements. --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 38ea4b0..3a1aee1 100644 --- a/Makefile +++ b/Makefile @@ -9,8 +9,8 @@ GO_VERSION = 1.24.0 all: test -# Run tests -.PHONY: test +# Run unit tests +.PHONY: test-unit test: @echo "Running tests..." go test ./... @@ -52,9 +52,9 @@ help: @echo "Available targets:" @echo "" @echo "Build & Test:" - @echo " test - Run tests" - @echo " test-coverage - Run tests with coverage report" - @echo " test-integration - Run integration tests (noop)" + @echo " test-unit - Run unit tests" + @echo " test-coverage - Run tests with coverage report" + @echo " test-integration - Run integration tests (noop)" @echo "" @echo "Code Quality:" @echo " fmt - Format code"