diff --git a/samples/standalone/dsl/http-client/build.gradle b/samples/standalone/dsl/http-client/build.gradle index 88ec09431e..29d65a015e 100644 --- a/samples/standalone/dsl/http-client/build.gradle +++ b/samples/standalone/dsl/http-client/build.gradle @@ -46,6 +46,14 @@ test { testLogging { exceptionFormat = 'full' } + afterSuite { desc, result -> + if (!desc.parent) { + println "Results: (${result.testCount} tests, ${result.successfulTestCount} successes, ${result.failedTestCount} failures, ${result.skippedTestCount} skipped)" + if (result.testCount == 0) { + throw new IllegalStateException("No tests were found. Failing the build") + } + } + } } task wrapper(type: Wrapper) { diff --git a/samples/standalone/dsl/http-client/pom.xml b/samples/standalone/dsl/http-client/pom.xml index ea17d22c59..87f1b7b641 100644 --- a/samples/standalone/dsl/http-client/pom.xml +++ b/samples/standalone/dsl/http-client/pom.xml @@ -95,6 +95,12 @@ + + maven-surefire-plugin + + true + + diff --git a/samples/standalone/dsl/http-server/build.gradle b/samples/standalone/dsl/http-server/build.gradle index 38f5adf0c1..dfe11c1ba2 100644 --- a/samples/standalone/dsl/http-server/build.gradle +++ b/samples/standalone/dsl/http-server/build.gradle @@ -55,6 +55,14 @@ test { testLogging { exceptionFormat = 'full' } + afterSuite { desc, result -> + if (!desc.parent) { + println "Results: (${result.testCount} tests, ${result.successfulTestCount} successes, ${result.failedTestCount} failures, ${result.skippedTestCount} skipped)" + if (result.testCount == 0) { + throw new IllegalStateException("No tests were found. Failing the build") + } + } + } } task wrapper(type: Wrapper) { diff --git a/samples/standalone/dsl/http-server/pom.xml b/samples/standalone/dsl/http-server/pom.xml index d0fb7cd0e3..7490046bcf 100644 --- a/samples/standalone/dsl/http-server/pom.xml +++ b/samples/standalone/dsl/http-server/pom.xml @@ -102,6 +102,12 @@ + + maven-surefire-plugin + + true + + diff --git a/samples/standalone/messaging/stream-sink/build.gradle b/samples/standalone/messaging/stream-sink/build.gradle index 9a21661933..83a42714b1 100644 --- a/samples/standalone/messaging/stream-sink/build.gradle +++ b/samples/standalone/messaging/stream-sink/build.gradle @@ -48,6 +48,14 @@ test { testLogging { exceptionFormat = 'full' } + afterSuite { desc, result -> + if (!desc.parent) { + println "Results: (${result.testCount} tests, ${result.successfulTestCount} successes, ${result.failedTestCount} failures, ${result.skippedTestCount} skipped)" + if (result.testCount == 0) { + throw new IllegalStateException("No tests were found. Failing the build") + } + } + } } task resolveDependencies { diff --git a/samples/standalone/messaging/stream-sink/pom.xml b/samples/standalone/messaging/stream-sink/pom.xml index 74f175d31e..ce9eb6b61e 100644 --- a/samples/standalone/messaging/stream-sink/pom.xml +++ b/samples/standalone/messaging/stream-sink/pom.xml @@ -85,6 +85,12 @@ + + maven-surefire-plugin + + true + + diff --git a/samples/standalone/messaging/stream-source/build.gradle b/samples/standalone/messaging/stream-source/build.gradle index f2628d80c3..4b59e881bc 100644 --- a/samples/standalone/messaging/stream-source/build.gradle +++ b/samples/standalone/messaging/stream-source/build.gradle @@ -85,6 +85,14 @@ test { testLogging { exceptionFormat = 'full' } + afterSuite { desc, result -> + if (!desc.parent) { + println "Results: (${result.testCount} tests, ${result.successfulTestCount} successes, ${result.failedTestCount} failures, ${result.skippedTestCount} skipped)" + if (result.testCount == 0) { + throw new IllegalStateException("No tests were found. Failing the build") + } + } + } } clean.doFirst { diff --git a/samples/standalone/messaging/stream-source/pom.xml b/samples/standalone/messaging/stream-source/pom.xml index 8f5262f377..38140126f9 100644 --- a/samples/standalone/messaging/stream-source/pom.xml +++ b/samples/standalone/messaging/stream-source/pom.xml @@ -135,6 +135,12 @@ true + + maven-surefire-plugin + + true + + diff --git a/samples/standalone/pact/pact-http-client/build.gradle b/samples/standalone/pact/pact-http-client/build.gradle index d257c40d0b..b208003192 100644 --- a/samples/standalone/pact/pact-http-client/build.gradle +++ b/samples/standalone/pact/pact-http-client/build.gradle @@ -48,6 +48,14 @@ test { testLogging { exceptionFormat = 'full' } + afterSuite { desc, result -> + if (!desc.parent) { + println "Results: (${result.testCount} tests, ${result.successfulTestCount} successes, ${result.failedTestCount} failures, ${result.skippedTestCount} skipped)" + if (result.testCount == 0) { + throw new IllegalStateException("No tests were found. Failing the build") + } + } + } } task wrapper(type: Wrapper) { diff --git a/samples/standalone/pact/pact-http-client/pom.xml b/samples/standalone/pact/pact-http-client/pom.xml index 8fd65849e8..c6db197d10 100644 --- a/samples/standalone/pact/pact-http-client/pom.xml +++ b/samples/standalone/pact/pact-http-client/pom.xml @@ -92,6 +92,12 @@ + + maven-surefire-plugin + + true + + diff --git a/samples/standalone/pact/pact-http-server/build.gradle b/samples/standalone/pact/pact-http-server/build.gradle index 2016d3f460..c2be396a72 100644 --- a/samples/standalone/pact/pact-http-server/build.gradle +++ b/samples/standalone/pact/pact-http-server/build.gradle @@ -54,6 +54,14 @@ test { testLogging { exceptionFormat = 'full' } + afterSuite { desc, result -> + if (!desc.parent) { + println "Results: (${result.testCount} tests, ${result.successfulTestCount} successes, ${result.failedTestCount} failures, ${result.skippedTestCount} skipped)" + if (result.testCount == 0) { + throw new IllegalStateException("No tests were found. Failing the build") + } + } + } } task wrapper(type: Wrapper) { diff --git a/samples/standalone/pact/pact-http-server/pom.xml b/samples/standalone/pact/pact-http-server/pom.xml index 346824013a..da05b7fb2c 100644 --- a/samples/standalone/pact/pact-http-server/pom.xml +++ b/samples/standalone/pact/pact-http-server/pom.xml @@ -105,6 +105,12 @@ + + maven-surefire-plugin + + true + + diff --git a/samples/standalone/restdocs/http-client/build.gradle b/samples/standalone/restdocs/http-client/build.gradle index b957ebd07d..c06ea8ee51 100644 --- a/samples/standalone/restdocs/http-client/build.gradle +++ b/samples/standalone/restdocs/http-client/build.gradle @@ -50,6 +50,14 @@ test { testLogging { exceptionFormat = 'full' } + afterSuite { desc, result -> + if (!desc.parent) { + println "Results: (${result.testCount} tests, ${result.successfulTestCount} successes, ${result.failedTestCount} failures, ${result.skippedTestCount} skipped)" + if (result.testCount == 0) { + throw new IllegalStateException("No tests were found. Failing the build") + } + } + } } task wrapper(type: Wrapper) { diff --git a/samples/standalone/restdocs/http-client/pom.xml b/samples/standalone/restdocs/http-client/pom.xml index cb181e9465..6557774b68 100644 --- a/samples/standalone/restdocs/http-client/pom.xml +++ b/samples/standalone/restdocs/http-client/pom.xml @@ -100,6 +100,12 @@ true + + maven-surefire-plugin + + true + + diff --git a/samples/standalone/restdocs/http-server/build.gradle b/samples/standalone/restdocs/http-server/build.gradle index 31ccadedba..8cc19750f0 100644 --- a/samples/standalone/restdocs/http-server/build.gradle +++ b/samples/standalone/restdocs/http-server/build.gradle @@ -58,6 +58,14 @@ test { testLogging { exceptionFormat = 'full' } + afterSuite { desc, result -> + if (!desc.parent) { + println "Results: (${result.testCount} tests, ${result.successfulTestCount} successes, ${result.failedTestCount} failures, ${result.skippedTestCount} skipped)" + if (result.testCount == 0) { + throw new IllegalStateException("No tests were found. Failing the build") + } + } + } } contracts { diff --git a/samples/standalone/restdocs/http-server/pom.xml b/samples/standalone/restdocs/http-server/pom.xml index 4850b7b87d..bb342b2d87 100644 --- a/samples/standalone/restdocs/http-server/pom.xml +++ b/samples/standalone/restdocs/http-server/pom.xml @@ -121,6 +121,12 @@ + + maven-surefire-plugin + + true + + org.springframework.cloud diff --git a/samples/standalone/webclient/http-client/build.gradle b/samples/standalone/webclient/http-client/build.gradle index 769472f6b8..aedea614b2 100644 --- a/samples/standalone/webclient/http-client/build.gradle +++ b/samples/standalone/webclient/http-client/build.gradle @@ -50,6 +50,14 @@ test { testLogging { exceptionFormat = 'full' } + afterSuite { desc, result -> + if (!desc.parent) { + println "Results: (${result.testCount} tests, ${result.successfulTestCount} successes, ${result.failedTestCount} failures, ${result.skippedTestCount} skipped)" + if (result.testCount == 0) { + throw new IllegalStateException("No tests were found. Failing the build") + } + } + } } task wrapper(type: Wrapper) { diff --git a/samples/standalone/webclient/http-client/pom.xml b/samples/standalone/webclient/http-client/pom.xml index 38517a21e3..dd31dc110b 100644 --- a/samples/standalone/webclient/http-client/pom.xml +++ b/samples/standalone/webclient/http-client/pom.xml @@ -93,6 +93,7 @@ **/*GradleTests.java + true diff --git a/samples/standalone/webclient/http-server/build.gradle b/samples/standalone/webclient/http-server/build.gradle index 03029f6e73..8541e2c115 100644 --- a/samples/standalone/webclient/http-server/build.gradle +++ b/samples/standalone/webclient/http-server/build.gradle @@ -52,6 +52,14 @@ test { testLogging { exceptionFormat = 'full' } + afterSuite { desc, result -> + if (!desc.parent) { + println "Results: (${result.testCount} tests, ${result.successfulTestCount} successes, ${result.failedTestCount} failures, ${result.skippedTestCount} skipped)" + if (result.testCount == 0) { + throw new IllegalStateException("No tests were found. Failing the build") + } + } + } } task wrapper(type: Wrapper) { diff --git a/samples/standalone/webclient/http-server/pom.xml b/samples/standalone/webclient/http-server/pom.xml index dc9a32cbd0..d999117fcb 100644 --- a/samples/standalone/webclient/http-server/pom.xml +++ b/samples/standalone/webclient/http-server/pom.xml @@ -109,6 +109,12 @@ + + maven-surefire-plugin + + true + + diff --git a/samples/standalone/yml/http-client/build.gradle b/samples/standalone/yml/http-client/build.gradle index e7007a2fbf..c128e8b9d5 100644 --- a/samples/standalone/yml/http-client/build.gradle +++ b/samples/standalone/yml/http-client/build.gradle @@ -45,6 +45,14 @@ test { testLogging { exceptionFormat = 'full' } + afterSuite { desc, result -> + if (!desc.parent) { + println "Results: (${result.testCount} tests, ${result.successfulTestCount} successes, ${result.failedTestCount} failures, ${result.skippedTestCount} skipped)" + if (result.testCount == 0) { + throw new IllegalStateException("No tests were found. Failing the build") + } + } + } } task wrapper(type: Wrapper) { diff --git a/samples/standalone/yml/http-client/pom.xml b/samples/standalone/yml/http-client/pom.xml index c61f29a160..1a5121553f 100644 --- a/samples/standalone/yml/http-client/pom.xml +++ b/samples/standalone/yml/http-client/pom.xml @@ -88,6 +88,12 @@ + + maven-surefire-plugin + + true + + diff --git a/samples/standalone/yml/http-server/build.gradle b/samples/standalone/yml/http-server/build.gradle index 22bdf0d1ef..b243de190d 100644 --- a/samples/standalone/yml/http-server/build.gradle +++ b/samples/standalone/yml/http-server/build.gradle @@ -56,6 +56,14 @@ test { testLogging { exceptionFormat = 'full' } + afterSuite { desc, result -> + if (!desc.parent) { + println "Results: (${result.testCount} tests, ${result.successfulTestCount} successes, ${result.failedTestCount} failures, ${result.skippedTestCount} skipped)" + if (result.testCount == 0) { + throw new IllegalStateException("No tests were found. Failing the build") + } + } + } } task wrapper(type: Wrapper) { diff --git a/samples/standalone/yml/http-server/pom.xml b/samples/standalone/yml/http-server/pom.xml index ee68520157..f73980f7cb 100644 --- a/samples/standalone/yml/http-server/pom.xml +++ b/samples/standalone/yml/http-server/pom.xml @@ -102,6 +102,12 @@ + + maven-surefire-plugin + + true + + diff --git a/samples/wiremock-jetty/pom.xml b/samples/wiremock-jetty/pom.xml index d51bdde68f..2047164f51 100644 --- a/samples/wiremock-jetty/pom.xml +++ b/samples/wiremock-jetty/pom.xml @@ -79,6 +79,12 @@ true + + maven-surefire-plugin + + true + + diff --git a/samples/wiremock-native/pom.xml b/samples/wiremock-native/pom.xml index 417f24fba8..8cb0639e6a 100644 --- a/samples/wiremock-native/pom.xml +++ b/samples/wiremock-native/pom.xml @@ -84,6 +84,12 @@ true + + maven-surefire-plugin + + true + + diff --git a/samples/wiremock-tomcat/pom.xml b/samples/wiremock-tomcat/pom.xml index bc0371d69a..ebe7a5cd32 100644 --- a/samples/wiremock-tomcat/pom.xml +++ b/samples/wiremock-tomcat/pom.xml @@ -69,6 +69,12 @@ true + + maven-surefire-plugin + + true + + diff --git a/samples/wiremock-undertow-ssl/pom.xml b/samples/wiremock-undertow-ssl/pom.xml index 6d3711ad40..f0e955872e 100644 --- a/samples/wiremock-undertow-ssl/pom.xml +++ b/samples/wiremock-undertow-ssl/pom.xml @@ -79,6 +79,12 @@ true + + maven-surefire-plugin + + true + + diff --git a/samples/wiremock-undertow/pom.xml b/samples/wiremock-undertow/pom.xml index a1112ac378..50bf11ab43 100644 --- a/samples/wiremock-undertow/pom.xml +++ b/samples/wiremock-undertow/pom.xml @@ -79,6 +79,12 @@ true + + maven-surefire-plugin + + true + + diff --git a/samples/wiremock/pom.xml b/samples/wiremock/pom.xml index e50a9ccf6e..c422c94a31 100644 --- a/samples/wiremock/pom.xml +++ b/samples/wiremock/pom.xml @@ -78,6 +78,12 @@ true + + maven-surefire-plugin + + true + + diff --git a/spring-cloud-contract-tools/spring-cloud-contract-maven-plugin/src/test/projects/spring-boot-groovy/pom.xml b/spring-cloud-contract-tools/spring-cloud-contract-maven-plugin/src/test/projects/spring-boot-groovy/pom.xml index 9b03ae0110..c9c3373fe6 100644 --- a/spring-cloud-contract-tools/spring-cloud-contract-maven-plugin/src/test/projects/spring-boot-groovy/pom.xml +++ b/spring-cloud-contract-tools/spring-cloud-contract-maven-plugin/src/test/projects/spring-boot-groovy/pom.xml @@ -35,7 +35,7 @@ org.codehaus.groovy groovy - 2.4.15 + 2.5.3 org.springframework.boot @@ -116,7 +116,6 @@ maven-surefire-plugin - 2.20 **/*Spec.java