Skip to content

Commit

Permalink
try improving gradle test output
Browse files Browse the repository at this point in the history
  • Loading branch information
jablan committed Oct 12, 2023
1 parent 5032664 commit f945791
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/test-java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 7 additions & 1 deletion openapi-generator/templates/java/build.gradle.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -177,6 +177,12 @@ dependencies {
testCompile "junit:junit:$junit_version"
}

test {
testLogging {
outputs.upToDateWhen {false}
showStandardStreams = true
}
}

publishing {
publications {
Expand Down

0 comments on commit f945791

Please sign in to comment.