Fix TestNG build settings
This commit is contained in:
@@ -691,6 +691,9 @@ project("spring-test") {
|
|||||||
|
|
||||||
task testNG(type: Test) {
|
task testNG(type: Test) {
|
||||||
useTestNG()
|
useTestNG()
|
||||||
|
scanForTestClasses = false
|
||||||
|
include "**/testng/*.*"
|
||||||
|
exclude "**/FailingBeforeAndAfterMethodsTests.class"
|
||||||
// "TestCase" classes are run by other test classes, not the build.
|
// "TestCase" classes are run by other test classes, not the build.
|
||||||
exclude "**/*TestCase.class"
|
exclude "**/*TestCase.class"
|
||||||
// Generate TestNG reports alongside JUnit reports.
|
// Generate TestNG reports alongside JUnit reports.
|
||||||
@@ -700,9 +703,11 @@ project("spring-test") {
|
|||||||
test {
|
test {
|
||||||
dependsOn testNG
|
dependsOn testNG
|
||||||
useJUnit()
|
useJUnit()
|
||||||
|
exclude "**/testng/*.*"
|
||||||
// "TestCase" classes are run by other test classes, not the build.
|
// "TestCase" classes are run by other test classes, not the build.
|
||||||
exclude(["**/*TestCase.class", "**/*TestSuite.class"])
|
exclude(["**/*TestCase.class", "**/*TestSuite.class"])
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
project("spring-test-mvc") {
|
project("spring-test-mvc") {
|
||||||
|
|||||||
Reference in New Issue
Block a user