Set testGroups system property for spring-test Gradle test tasks

master
Sam Brannen 5 years ago
parent 69214429df
commit 8ccf4a9072
  1. 2
      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"])

Loading…
Cancel
Save