]> source.dussan.org Git - sonarqube.git/commitdiff
Improve logging for ITs
authorDavid Rautureau <david.rautureau@sonarsource.com>
Mon, 12 Mar 2018 12:37:51 +0000 (13:37 +0100)
committerDavid Rautureau <david.rautureau@sonarsource.com>
Tue, 13 Mar 2018 16:32:52 +0000 (17:32 +0100)
cix.sh
run-integration-tests.sh
run-perf-tests.sh
run-upgrade-tests.sh
tests/build.gradle

diff --git a/cix.sh b/cix.sh
index 51d388eaab07ea5463500ce4286026b8dd4ba399..3954a87b023e19901280a83fdf3d89ca9c760e84 100755 (executable)
--- a/cix.sh
+++ b/cix.sh
@@ -31,7 +31,7 @@ case "$RUN_ACTIVITY" in
       exit 0
 
     else
-      ./gradlew --no-daemon --console plain -i \
+      ./gradlew --no-daemon --console plain \
           :tests:integrationTest \
           -Dcategory="$CATEGORY" \
           -Dorchestrator.configUrl="http://infra.internal.sonarsource.com/jenkins/orch-$DB_ENGINE.properties" \
index 78ce995c7c4d27df1247415f9b2f3dcf90f2abc1..3cc8fb45cb03d721ca99cc6bbbcd440539278722 100755 (executable)
@@ -16,7 +16,7 @@ CATEGORY=$1
 ORCHESTRATOR_CONFIG_URL=$2
 shift 2
 
-./gradlew --no-daemon --console plain -i \
+./gradlew --no-daemon --console plain \
   :tests:integrationTest \
   -Dcategory="$CATEGORY" \
   -Dorchestrator.configUrl=$ORCHESTRATOR_CONFIG_URL  \
index 5374319ac439777cd4233f4786acc297fb16c2f7..8f0597565a6995664dca6f1cd718da8bd3545511 100755 (executable)
@@ -3,7 +3,7 @@ set -euo pipefail
 
 echo 'Run performance tests'
 
-./gradlew --no-daemon --console plain -i \
+./gradlew --no-daemon --console plain \
   :tests:integrationTest \
   -Dcategory=ServerPerformance  \
   $*
index 97a838557b72c031c4fc2ce4bb182b4c84f8a1ba..d263cfa922e23a3b9d2eecf418486ceb145de7be 100755 (executable)
@@ -13,7 +13,7 @@ set -euo pipefail
 ORCHESTRATOR_CONFIG_URL=$1
 shift 1
 
-./gradlew --no-daemon --console plain -i \
+./gradlew --no-daemon --console plain \
   :tests:integrationTest \
   -Dorchestrator.configUrl=$ORCHESTRATOR_CONFIG_URL \
   -Dcategory=Upgrade \
index 17d053aba7c3665dffdf0f8c955a88c6838d1e80..ca8a491738ab8b138bd8795b72acd9135601f1f9 100644 (file)
@@ -139,6 +139,10 @@ task integrationTest(type: Test) {
         includeTestsMatching 'org.sonarqube.tests.performance.server.ServerPerformanceSuite'
         break
     }
+    testLogging {
+      exceptionFormat 'full' // log the full stack trace (default is the 1st line of the stack trace)
+      events "skipped", "failed" // verbose log for failed and skipped tests (by default the name of the tests are not logged)
+    }
   }
 }