aboutsummaryrefslogtreecommitdiffstats
path: root/it
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2015-10-29 09:54:36 +0100
committerDuarte Meneses <duarte.meneses@sonarsource.com>2015-11-03 10:14:38 +0100
commitd5d4548ee4f0c13360ca4f28ff751f927daef663 (patch)
tree136b63be0a3f2cc6af1982750b349d0e83ada9a1 /it
parent21659de7af40d0537e97df0bb8f7a4cb4ec390e6 (diff)
downloadsonarqube-d5d4548ee4f0c13360ca4f28ff751f927daef663.tar.gz
sonarqube-d5d4548ee4f0c13360ca4f28ff751f927daef663.zip
SONAR-6108 Keep batch report if debug mode is enabled
Diffstat (limited to 'it')
-rw-r--r--it/it-tests/src/test/java/it/analysis/BatchTest.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/it/it-tests/src/test/java/it/analysis/BatchTest.java b/it/it-tests/src/test/java/it/analysis/BatchTest.java
index f6a2e5bb199..e558ca8d942 100644
--- a/it/it-tests/src/test/java/it/analysis/BatchTest.java
+++ b/it/it-tests/src/test/java/it/analysis/BatchTest.java
@@ -325,6 +325,17 @@ public class BatchTest {
assertThat(result.getLogs()).doesNotContain("Download sonar-xoo-plugin-");
}
+ @Test
+ public void batch_should_keep_report_verbose() {
+ orchestrator.getServer().provisionProject("sample", "xoo-sample");
+ orchestrator.getServer().associateProjectToQualityProfile("sample", "xoo", "one-issue-per-line");
+
+ scanQuietly("shared/xoo-sample", "sonar.verbose", "true");
+ File reportDir = new File(new File(ItUtils.projectDir("shared/xoo-sample"), ".sonar"), "batch-report");
+ assertThat(reportDir).isDirectory();
+ assertThat(reportDir.list()).isNotEmpty();
+ }
+
/**
* SONAR-4239
*/