Skip to content

Commit 301c557

Browse files
committed
Showing enhanced logging during tests
1 parent cb5c4be commit 301c557

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

build.gradle

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ ext {
3737
set('snippetsDir', file('build/generated-snippets'))
3838
applicationProperties = System.getProperty('applicationProperties', './src/test/resources/test-config/application-test.properties')
3939
pythonExecutable = System.getProperty('pythonExecutable', 'file:///usr/bin/python3')
40+
userDir = System.getProperty('user.dir')
4041
}
4142

4243
dependencies {
@@ -89,11 +90,13 @@ dependencies {
8990
test {
9091
outputs.dir snippetsDir
9192
finalizedBy jacocoTestReport
92-
print("Running tests with configuration: ${applicationProperties}")
93-
print("Running tests with python: ${pythonExecutable}")
93+
println("Running tests with configuration: ${applicationProperties}")
94+
println("Running tests with python: ${pythonExecutable}")
95+
println("Running tests in directory: ${userDir}")
9496
environment 'spring.config.location', applicationProperties
9597
environment 'pythonLocation', pythonExecutable
9698
useJUnitPlatform()
99+
testLogging.showStandardStreams = true
97100
}
98101

99102
jacoco {

0 commit comments

Comments
 (0)