File tree Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -317,16 +317,11 @@ configure([rootProject] + javaProjects) { project ->
317
317
}
318
318
319
319
test {
320
+ useJUnitPlatform()
321
+ include([" **/*Tests.class" , " **/*Test.class" ])
320
322
systemProperty(" java.awt.headless" , " true" )
321
323
systemProperty(" testGroups" , project. properties. get(" testGroups" ))
322
324
systemProperty(" io.netty.leakDetection.level" , " paranoid" )
323
- useJUnitPlatform()
324
- scanForTestClasses = false
325
- include([" **/*Tests.class" , " **/*Test.class" ])
326
- // Since we set scanForTestClasses to false, we need to filter out inner
327
- // classes with the "$" pattern; otherwise, using -Dtest.single=MyTests to
328
- // run MyTests by itself will fail if MyTests contains any inner classes.
329
- exclude([" **/Abstract*.class" , ' **/*$*' ])
330
325
}
331
326
332
327
checkstyle {
Original file line number Diff line number Diff line change @@ -74,22 +74,21 @@ dependencies {
74
74
75
75
task junit (type : Test ) {
76
76
description = " Runs JUnit 4 and JUnit Jupiter tests."
77
- systemProperty(" testGroups" , project. properties. get(" testGroups" ))
78
77
useJUnitPlatform {
79
78
excludeTags " failing-test-case"
80
79
}
81
80
include([" **/*Tests.class" , " **/*Test.class" ])
82
81
exclude([" **/testng/**/*.*" ])
82
+ systemProperty(" testGroups" , project. properties. get(" testGroups" ))
83
83
// Java Util Logging for the JUnit Platform.
84
84
// systemProperty("java.util.logging.manager", "org.apache.logging.log4j.jul.LogManager")
85
85
}
86
86
87
87
task testNG (type : Test ) {
88
88
description = " Runs TestNG tests."
89
- systemProperty(" testGroups" , project. properties. get(" testGroups" ))
90
89
useTestNG()
91
- scanForTestClasses = false
92
90
include([" **/testng/**/*Tests.class" , " **/testng/**/*Test.class" ])
91
+ systemProperty(" testGroups" , project. properties. get(" testGroups" ))
93
92
// Show STD_OUT & STD_ERR of the test JVM(s) on the console:
94
93
// testLogging.showStandardStreams = true
95
94
// forkEvery 1
You can’t perform that action at this time.
0 commit comments