From 6bae328a4f548d18ccb1cd77ecd8b0c101663dbb Mon Sep 17 00:00:00 2001 From: Tyler Benson Date: Fri, 15 Feb 2019 15:36:47 -0800 Subject: [PATCH] =?UTF-8?q?Exclude=20tests=20generated=20by=20=E2=80=9Ctes?= =?UTF-8?q?t-sets=E2=80=9D=20plugin=20from=20alternate=20JVM=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tests run under regular classpath, not the custom one defined by the plugin. This works for some tests where this is expected, but other tests it’s just retesting the `test` sourceset tests, not the custom provided ones (ex: slickTest). --- gradle/java.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gradle/java.gradle b/gradle/java.gradle index 91cebebccb..3a5dc074e7 100644 --- a/gradle/java.gradle +++ b/gradle/java.gradle @@ -228,7 +228,9 @@ for (def env : System.getenv().entrySet()) { tasks.check.dependsOn parentTask tasks.withType(Test).configureEach { - if (name.endsWith("Generated")) { +// if (name.endsWith("Generated")) { + if (!name.equals("test")) { + // The way we're copying the test doesn't currently work with "test-sets" generated tests. return }