Skip to content

Commit 4575f82

Browse files
committed
Simplify Gradle test task configuration
1 parent 3c4cd99 commit 4575f82

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

build.gradle

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -317,16 +317,11 @@ configure([rootProject] + javaProjects) { project ->
317317
}
318318

319319
test {
320+
useJUnitPlatform()
321+
include(["**/*Tests.class", "**/*Test.class"])
320322
systemProperty("java.awt.headless", "true")
321323
systemProperty("testGroups", project.properties.get("testGroups"))
322324
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(['**/*$*'])
330325
}
331326

332327
checkstyle {

0 commit comments

Comments
 (0)