Skip to content

Commit 1034a8f

Browse files
committed
include ginkgo results into CI report
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
1 parent 6e1700a commit 1034a8f

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

.github/workflows/tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
uses: test-summary/action@032c8a9cec6aaa3c20228112cae6ca10a3b29336 # v2.3
7171
with:
7272
paths: |
73-
test-report.xml
73+
**/*-test-report.xml
7474
if: always()
7575

7676
statics:

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,4 +364,4 @@ admin/Cargo.lock
364364
*.ext
365365

366366
# test results
367-
test-report.xml
367+
*-test-report.xml

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ install-test-deps:
8181
go install gotest.tools/gotestsum@latest
8282

8383
test: fmt vet test-certs install-test-deps envtest
84-
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) -p path)" gotestsum --junitfile test-report.xml
84+
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) -p path)" gotestsum --junitfile unit-test-report.xml
8585

8686
e2e-test: install-test-deps
8787
go run -tags e2e ./tests/run-all.go

operator/controllers/http/suite_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,11 @@ var k8sClient client.Client
5252
var ctx context.Context
5353
var cancel context.CancelFunc
5454

55-
func TestAPIs(t *testing.T) {
55+
func TestControllers(t *testing.T) {
5656
RegisterFailHandler(Fail)
57-
58-
RunSpecs(t, "Controllers Suite")
57+
suiteConfig, reporterConfig := GinkgoConfiguration()
58+
reporterConfig.JUnitReport = "functional-test-report.xml"
59+
RunSpecs(t, "Controllers Suite", suiteConfig, reporterConfig)
5960
}
6061

6162
var _ = BeforeSuite(func() {

0 commit comments

Comments
 (0)