From 0b33ba913d328713c0b7d51804492f88eda18870 Mon Sep 17 00:00:00 2001 From: Sylvain Gilgen Date: Tue, 19 Nov 2024 15:48:02 +0100 Subject: [PATCH] add test report --- .github/workflows/gradle.yml | 8 ++++++++ test/groovy/src/com/puzzleitc/jenkins/QuayTest.groovy | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 79b6849..9244aff 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -21,3 +21,11 @@ jobs: run: chmod +x gradlew - name: Build with Gradle run: ./gradlew clean build + - name: Unittest Report + uses: dorny/test-reporter@v1.9.1 + with: + name: unit-tests + path: target/test-results/test/*.xml + reporter: java-junit + fail-on-empty: 'true' + fail-on-error: 'true' \ No newline at end of file diff --git a/test/groovy/src/com/puzzleitc/jenkins/QuayTest.groovy b/test/groovy/src/com/puzzleitc/jenkins/QuayTest.groovy index b3cf4dd..6a9b6af 100644 --- a/test/groovy/src/com/puzzleitc/jenkins/QuayTest.groovy +++ b/test/groovy/src/com/puzzleitc/jenkins/QuayTest.groovy @@ -38,7 +38,7 @@ class QuayTest extends BasePipelineTest { Quay myQuay = new Quay(script, 'cred') // then - assertThat(myQuay.getRegistryUrl()).isEqualTo('https://quay.ios') + assertThat(myQuay.getRegistryUrl()).isEqualTo('https://quay.io') } @Test