File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -317,12 +317,16 @@ configure([rootProject] + javaProjects) { project ->
317
317
}
318
318
319
319
test {
320
- useJUnitPlatform()
321
- scanForTestClasses = false
322
- include([" **/*Tests.class" , " **/*Test.class" ])
323
320
systemProperty(" java.awt.headless" , " true" )
324
321
systemProperty(" testGroups" , project. properties. get(" testGroups" ))
325
322
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([' **/*$*' ])
326
330
}
327
331
328
332
checkstyle {
You can’t perform that action at this time.
0 commit comments