@@ -167,12 +167,19 @@ jmh {
167167 }
168168}
169169
170+ def isCI = System . getenv(" CI" ) != null
171+ def testLoggingConfig = [" skipped" , " failed" ]
172+ if (! isCI) {
173+ testLoggingConfig = [" failed" ]
174+ }
175+
170176test {
171177 maxHeapSize = " 1200m"
172178 maxParallelForks = Runtime . runtime. availableProcessors(). intdiv(2 ) ?: 1
173179 useJUnitPlatform()
174180}
175181
182+
176183tasks. register(' testNG' , Test ) {
177184 description = ' Runs TestNG tests'
178185 group = ' verification'
@@ -192,16 +199,16 @@ tasks.register('testNG', Test) {
192199
193200 // Optional: reports, listeners, etc.
194201 testLogging {
195- events = [ " skipped " , " failed " ]
202+ events = testLoggingConfig
196203 exceptionFormat = " full"
197204
198- debug. events = [ " skipped " , " failed " ]
205+ debug. events = testLoggingConfig
199206 debug. exceptionFormat = " full"
200207
201- info. events = [ " failed " , " skipped " ]
208+ info. events = testLoggingConfig
202209 info. exceptionFormat = " full"
203210
204- warn. events = [ " failed " , " skipped " ]
211+ warn. events = testLoggingConfig
205212 warn. exceptionFormat = " full"
206213 }
207214 reports. html. required = true
@@ -212,16 +219,16 @@ check.dependsOn testNG
212219
213220tasks. withType(Test ) {
214221 testLogging {
215- events = [ " skipped " , " failed " ]
222+ events = testLoggingConfig
216223 exceptionFormat = " full"
217224
218- debug. events = [ " skipped " , " failed " ]
225+ debug. events = testLoggingConfig
219226 debug. exceptionFormat = " full"
220227
221- info. events = [ " failed " , " skipped " ]
228+ info. events = testLoggingConfig
222229 info. exceptionFormat = " full"
223230
224- warn. events = [ " failed " , " skipped " ]
231+ warn. events = testLoggingConfig
225232 warn. exceptionFormat = " full"
226233 }
227234}
0 commit comments