From d6ba2454548ae0ded3b0772efd10fc7502160186 Mon Sep 17 00:00:00 2001
From: dgelessus <dgelessus@users.noreply.github.com>
Date: Wed, 15 Jan 2025 12:39:58 +0100
Subject: [PATCH] Run Gradle with --info on CI to reduce needed testLogging
 options

---
 .gitlab-ci.yml | 2 +-
 build.gradle   | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d7cfdc642..e2c06c325 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -37,4 +37,4 @@ test:linux:
     - mkdir cpp_build && cd cpp_build
     - cmake ..
     - make install & cd ..
-    - ./gradlew test --stacktrace
+    - ./gradlew test --info --stacktrace
diff --git a/build.gradle b/build.gradle
index 25a2f1ce2..8fd51fa97 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,3 +1,5 @@
+import org.gradle.api.tasks.testing.logging.TestLogEvent
+
 apply plugin: 'java'
 apply plugin: 'application'
 apply plugin: 'antlr'
@@ -48,9 +50,7 @@ test {
     //maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
 
     testLogging {
-        exceptionFormat = 'full'
-        showStandardStreams = true
-        events 'failed', 'skipped', 'passed'
+        events += [TestLogEvent.PASSED]
     }
 }
 
-- 
GitLab