From f945791bee64829ba9ae9beb7b3280188d238fa0 Mon Sep 17 00:00:00 2001 From: Mladen Jablanovic Date: Thu, 12 Oct 2023 16:51:37 +0200 Subject: [PATCH 1/3] try improving gradle test output --- .github/workflows/test-java.yml | 7 +++++-- openapi-generator/templates/java/build.gradle.mustache | 8 +++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-java.yml b/.github/workflows/test-java.yml index 332bf1bbb..79de5e986 100644 --- a/.github/workflows/test-java.yml +++ b/.github/workflows/test-java.yml @@ -13,9 +13,12 @@ jobs: with: distribution: temurin java-version: 11 - - name: Run Gradle Tests + - name: Set up Gradle uses: gradle/gradle-build-action@v2 with: gradle-version: 7.1.1 build-root-directory: ./clients/java - arguments: test + - name: Run tests + run: | + cd clients/java + ./gradlew test --info diff --git a/openapi-generator/templates/java/build.gradle.mustache b/openapi-generator/templates/java/build.gradle.mustache index 17eb378ad..8b449e451 100644 --- a/openapi-generator/templates/java/build.gradle.mustache +++ b/openapi-generator/templates/java/build.gradle.mustache @@ -122,7 +122,7 @@ if(hasProperty('target') && target == 'android') { main = System.getProperty('mainClass') classpath = sourceSets.main.runtimeClasspath } - + task sourcesJar(type: Jar, dependsOn: classes) { classifier = 'sources' from sourceSets.main.allSource @@ -177,6 +177,12 @@ dependencies { testCompile "junit:junit:$junit_version" } +test { + testLogging { + outputs.upToDateWhen {false} + showStandardStreams = true + } +} publishing { publications { From 9ff6d7a36348fa3c85380744f56bd8480df0f13c Mon Sep 17 00:00:00 2001 From: Mladen Jablanovic Date: Thu, 12 Oct 2023 16:54:00 +0200 Subject: [PATCH 2/3] try improving gradle test output --- .github/workflows/test-java.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/test-java.yml b/.github/workflows/test-java.yml index 79de5e986..ee580a5fa 100644 --- a/.github/workflows/test-java.yml +++ b/.github/workflows/test-java.yml @@ -18,7 +18,4 @@ jobs: with: gradle-version: 7.1.1 build-root-directory: ./clients/java - - name: Run tests - run: | - cd clients/java - ./gradlew test --info + args: test --info From 4d7ed528bf037b5bc70910885d904940ecdbb467 Mon Sep 17 00:00:00 2001 From: Mladen Jablanovic Date: Thu, 12 Oct 2023 16:57:05 +0200 Subject: [PATCH 3/3] try improving gradle test output --- .github/workflows/test-java.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-java.yml b/.github/workflows/test-java.yml index ee580a5fa..8b3052093 100644 --- a/.github/workflows/test-java.yml +++ b/.github/workflows/test-java.yml @@ -13,9 +13,9 @@ jobs: with: distribution: temurin java-version: 11 - - name: Set up Gradle + - name: Run gradle test uses: gradle/gradle-build-action@v2 with: gradle-version: 7.1.1 build-root-directory: ./clients/java - args: test --info + arguments: test --info