Skip to content

OCPBUGS-57019 OCPBUGS-56956, OPRUN-3914: [Default Catalog Consistency Test]: fix junit output format to allow generate xml #366

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions openshift/default-catalog-consistency/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Binaries for programs and plugins
bin/*
22 changes: 19 additions & 3 deletions openshift/default-catalog-consistency/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,26 @@ help: #HELP Display essential help.

#SECTION Tests

# Set the Ginkgo binary path. Assumes it's installed via `go install`
GOBIN ?= $(shell go env GOBIN)
ifeq ($(GOBIN),)
GOBIN := $(shell go env GOPATH)/bin
endif

TOOLS_BIN_DIR := $(CURDIR)/bin
GINKGO := $(TOOLS_BIN_DIR)/ginkgo

.PHONY: install-tools
install-tools: $(GINKGO) #HELP Build vendored CLI tools

$(GINKGO): vendor/modules.txt
go build -mod=vendor -o $(GINKGO) ./vendor/github.com/onsi/ginkgo/v2/ginkgo

.PHONY: test-catalog
test-catalog: #HELP Run the set of tests to validate the quality of catalogs
E2E_GINKGO_OPTS="$(if $(ARTIFACT_DIR),--output-dir='$(ARTIFACT_DIR)') --junit-report junit_e2e.xml" \
go test -count=1 -v ./test/validate/...;
test-catalog: install-tools $(GINKGO) #HELP Run the set of tests to validate the quality of catalogs
$(GINKGO) $(if $(ARTIFACT_DIR),--output-dir='$(ARTIFACT_DIR)') \
--junit-report=junit_olm.xml ./test/validate/...


#SECTION Development

Expand Down