From: David Rautureau Date: Mon, 12 Mar 2018 12:37:51 +0000 (+0100) Subject: Improve logging for ITs X-Git-Tag: 7.5~1544 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=75505836a72c89c56d36a62a55ab64100889afd6;p=sonarqube.git Improve logging for ITs --- diff --git a/cix.sh b/cix.sh index 51d388eaab0..3954a87b023 100755 --- 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" \ diff --git a/run-integration-tests.sh b/run-integration-tests.sh index 78ce995c7c4..3cc8fb45cb0 100755 --- a/run-integration-tests.sh +++ b/run-integration-tests.sh @@ -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 \ diff --git a/run-perf-tests.sh b/run-perf-tests.sh index 5374319ac43..8f0597565a6 100755 --- a/run-perf-tests.sh +++ b/run-perf-tests.sh @@ -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 \ $* diff --git a/run-upgrade-tests.sh b/run-upgrade-tests.sh index 97a838557b7..d263cfa922e 100755 --- a/run-upgrade-tests.sh +++ b/run-upgrade-tests.sh @@ -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 \ diff --git a/tests/build.gradle b/tests/build.gradle index 17d053aba7c..ca8a491738a 100644 --- a/tests/build.gradle +++ b/tests/build.gradle @@ -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) + } } }