Fix TestNG build settings

This commit is contained in:
Phillip Webb 2013-07-30 14:21:28 -07:00
parent 4213a31a7d
commit ae6e84bc7d
1 changed files with 5 additions and 0 deletions

View File

@ -691,6 +691,9 @@ project("spring-test") {
task testNG(type: Test) {
useTestNG()
scanForTestClasses = false
include "**/testng/*.*"
exclude "**/FailingBeforeAndAfterMethodsTests.class"
// "TestCase" classes are run by other test classes, not the build.
exclude "**/*TestCase.class"
// Generate TestNG reports alongside JUnit reports.
@ -700,9 +703,11 @@ project("spring-test") {
test {
dependsOn testNG
useJUnit()
exclude "**/testng/*.*"
// "TestCase" classes are run by other test classes, not the build.
exclude(["**/*TestCase.class", "**/*TestSuite.class"])
}
}
project("spring-test-mvc") {