We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 827d841 + 7cb067e commit 2628893Copy full SHA for 2628893
Makefile
@@ -7,8 +7,20 @@ build:
7
hack/build-go.sh
8
.PHONY: build
9
10
-test:
11
- go test ./...
+gotestsum:
+ which gotestsum || go install gotest.tools/gotestsum@latest
12
+.PHONY: gotestsum
13
+
14
+JUNIT_DIR := "_output"
15
+PACKAGES := "./..."
16
+ifeq ($(CI),true)
17
+JUNIT_DIR := "$(ARTIFACT_DIR)"
18
+# tests in github.com/openshift/cluster-version-operator/test/ will be executed separately in CI
19
+PACKAGES := $(shell go list ./... | grep -v "github.com/openshift/cluster-version-operator/test/" | xargs)
20
+endif
21
22
+test: gotestsum
23
+ gotestsum --junitfile="$(JUNIT_DIR)/junit.xml" --packages="$(PACKAGES)"
24
.PHONY: test
25
26
integration-test:
0 commit comments