You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fineract.apache.org by vo...@apache.org on 2020/05/05 08:52:10 UTC

[fineract] branch develop updated: Gradle testLogging exceptionFormat "full" (FINERACT-927)

This is an automated email from the ASF dual-hosted git repository.

vorburger pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract.git


The following commit(s) were added to refs/heads/develop by this push:
     new edfcb93  Gradle testLogging exceptionFormat "full"  (FINERACT-927)
edfcb93 is described below

commit edfcb931e96cd5ccf5a014d2ea4204246a6aed21
Author: Michael Vorburger <mi...@vorburger.ch>
AuthorDate: Mon May 4 02:22:09 2020 +0200

    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 955add4..70d7c47 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 ef5abdc..0111241 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