From ae6e84bc7dfe4d9645abd6539bac074bdf8af8e5 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Tue, 30 Jul 2013 14:21:28 -0700 Subject: [PATCH] Fix TestNG build settings --- build.gradle | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.gradle b/build.gradle index 795e0fcbdb8..481bf9ea42f 100644 --- a/build.gradle +++ b/build.gradle @@ -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") {