Skip to content

Commit

Permalink
Switched on standard streams output in GH build action
Browse files Browse the repository at this point in the history
  • Loading branch information
jlink committed Mar 13, 2023
1 parent c8b8cbf commit 2660b3e
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
with:
# It allows different cache contents for different JDKs
job-id: java${{ matrix.java_version }}
arguments: check ${{ matrix.extraGradleArgs }}
arguments: check -DshowStandardStreams=true ${{ matrix.extraGradleArgs }}

# - name: Publish Test Report
# uses: scacap/action-surefire-report@v1
Expand Down
7 changes: 7 additions & 0 deletions dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ static def isSnapshotRelease(versionString) {
versionString.endsWith('SNAPSHOT')
}

static def showStandardStreams() {
def propSSS = System.getProperty("showStandardStreams")
propSSS == null ? false : propSSS == "true"
}

ext {
junitPlatformVersion = '1.9.2'
junitJupiterVersion = '5.9.2'
Expand All @@ -35,4 +40,6 @@ ext {
moduleName = 'net.jqwik'
jqwikVersion = '1.7.3-SNAPSHOT'
isSnapshotRelease = isSnapshotRelease(jqwikVersion)
showStandardStreams = showStandardStreams()

}
2 changes: 1 addition & 1 deletion engine/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ test {
junitXml.required = true
}

// testLogging.showStandardStreams = true
testLogging.showStandardStreams = showStandardStreams
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@

import net.jqwik.api.*;
import net.jqwik.api.constraints.*;
import net.jqwik.testing.*;

import static org.assertj.core.api.Assertions.*;

@PropertyDefaults(tries = 100)
@SuppressLogging
class HashCodeSupportTests {

@Property
Expand Down
3 changes: 3 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# com.github.vlsi.gradle-extensions prints only failing or slow test results
slowTestLogThreshold=15000
slowSuiteLogThreshold=30000



0 comments on commit 2660b3e

Please sign in to comment.