Set testGroups system property for spring-test Gradle test tasks

This commit is contained in:
Sam Brannen
2019-07-21 20:21:58 +02:00
parent 69214429df
commit 8ccf4a9072

View File

@@ -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"])