From bc869657c89fcc73c6df8be5cfa276956928d312 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Tue, 3 Sep 2019 15:17:34 +0200 Subject: [PATCH] Partially revert 670cbb9aedc3100621a57d161179179b693b378c ... but continue to execute `Abstract*Tests` classes. --- build.gradle | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 01aab751d9..0cd3dfaedc 100644 --- a/build.gradle +++ b/build.gradle @@ -317,12 +317,16 @@ configure([rootProject] + javaProjects) { project -> } test { - useJUnitPlatform() - scanForTestClasses = false - include(["**/*Tests.class", "**/*Test.class"]) systemProperty("java.awt.headless", "true") systemProperty("testGroups", project.properties.get("testGroups")) systemProperty("io.netty.leakDetection.level", "paranoid") + useJUnitPlatform() + scanForTestClasses = false + include(["**/*Tests.class", "**/*Test.class"]) + // Since we set scanForTestClasses to false, we need to filter out inner + // classes with the "$" pattern; otherwise, using -Dtest.single=MyTests to + // run MyTests by itself will fail if MyTests contains any inner classes. + exclude(['**/*$*']) } checkstyle {