Skip to content

Commit ae6e84b

Browse files
committed
Fix TestNG build settings
1 parent 4213a31 commit ae6e84b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -691,6 +691,9 @@ project("spring-test") {
691691

692692
task testNG(type: Test) {
693693
useTestNG()
694+
scanForTestClasses = false
695+
include "**/testng/*.*"
696+
exclude "**/FailingBeforeAndAfterMethodsTests.class"
694697
// "TestCase" classes are run by other test classes, not the build.
695698
exclude "**/*TestCase.class"
696699
// Generate TestNG reports alongside JUnit reports.
@@ -700,9 +703,11 @@ project("spring-test") {
700703
test {
701704
dependsOn testNG
702705
useJUnit()
706+
exclude "**/testng/*.*"
703707
// "TestCase" classes are run by other test classes, not the build.
704708
exclude(["**/*TestCase.class", "**/*TestSuite.class"])
705709
}
710+
706711
}
707712

708713
project("spring-test-mvc") {

0 commit comments

Comments
 (0)