Set testGroups system property for spring-test Gradle test tasks
This commit is contained in:
@@ -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"])
|
||||
|
||||
Reference in New Issue
Block a user