Skip to content

Commit d6ba245

Browse files
committed
Run Gradle with --info on CI to reduce needed testLogging options
1 parent 4e26c22 commit d6ba245

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.gitlab-ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ test:linux:
3737
- mkdir cpp_build && cd cpp_build
3838
- cmake ..
3939
- make install & cd ..
40-
- ./gradlew test --stacktrace
40+
- ./gradlew test --info --stacktrace

build.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import org.gradle.api.tasks.testing.logging.TestLogEvent
2+
13
apply plugin: 'java'
24
apply plugin: 'application'
35
apply plugin: 'antlr'
@@ -48,9 +50,7 @@ test {
4850
//maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
4951

5052
testLogging {
51-
exceptionFormat = 'full'
52-
showStandardStreams = true
53-
events 'failed', 'skipped', 'passed'
53+
events += [TestLogEvent.PASSED]
5454
}
5555
}
5656

0 commit comments

Comments
 (0)