From 8ccf4a90727cf2edead4b60d92ed22950762f535 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Sun, 21 Jul 2019 20:21:58 +0200 Subject: [PATCH] Set testGroups system property for spring-test Gradle test tasks --- spring-test/spring-test.gradle | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spring-test/spring-test.gradle b/spring-test/spring-test.gradle index c5c45db98b..d5ecdc7add 100644 --- a/spring-test/spring-test.gradle +++ b/spring-test/spring-test.gradle @@ -87,6 +87,7 @@ dependencies { task junit(type: Test) { description = "Runs JUnit 4 and JUnit Jupiter tests." + systemProperty("testGroups", project.properties.get("testGroups")) useJUnitPlatform { excludeTags "failing-test-case" } @@ -98,6 +99,7 @@ task junit(type: Test) { task testNG(type: Test) { description = "Runs TestNG tests." + systemProperty("testGroups", project.properties.get("testGroups")) useTestNG() scanForTestClasses = false include(["**/testng/**/*Tests.class", "**/testng/**/*Test.class"])