From edfcb931e96cd5ccf5a014d2ea4204246a6aed21 Mon Sep 17 00:00:00 2001 From: Michael Vorburger Date: Mon, 4 May 2020 02:22:09 +0200 Subject: [PATCH] Gradle testLogging exceptionFormat "full" (FINERACT-927) as well as integrationTest --fail-fast --- .travis.yml | 2 +- fineract-provider/build.gradle | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 955add4a8..70d7c4721 100644 --- a/.travis.yml +++ b/.travis.yml @@ -61,5 +61,5 @@ script: # using "&&" instead of several "-" means that integrationTest does not run if test fails, # and Docker test does not run if integration test fails, which makes PR failure easier to understand. # @see https://docs.travis-ci.com/user/job-lifecycle/#customizing-the-build-phase - - ./gradlew --console=plain licenseMain licenseTest licenseIntegrationTest check && ./gradlew --console=plain integrationTest && sudo service mysql stop && docker-compose build && docker-compose up -d && sleep 30s && http --verify=no --timeout 240 --check-status get https://localhost:8443/fineract-provider/actuator/health + - ./gradlew --console=plain licenseMain licenseTest licenseIntegrationTest check && ./gradlew --console=plain integrationTest --fail-fast && sudo service mysql stop && docker-compose build && docker-compose up -d && sleep 30s && http --verify=no --timeout 240 --check-status get https://localhost:8443/fineract-provider/actuator/health # We stop the mysql system service when running the Docker test to avoid port 3306 conflicts (unless we run the mysql in docker-compose on another port; req. FINERACT-773) diff --git a/fineract-provider/build.gradle b/fineract-provider/build.gradle index ef5abdcd0..0111241a7 100644 --- a/fineract-provider/build.gradle +++ b/fineract-provider/build.gradle @@ -498,6 +498,20 @@ task integrationTest(type:Test) { classpath = project.sourceSets.integrationTest.runtimeClasspath } +integrationTest { + testLogging { // FINERACT-927 + events "skipped", "failed" + showStandardStreams = false + exceptionFormat "full" + } +} +test { + testLogging { // FINERACT-927 + events "skipped", "failed" + showStandardStreams = false + exceptionFormat "full" + } +} import com.github.spotbugs.SpotBugsTask import groovy.sql.Sql