diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2015-10-29 09:54:36 +0100 |
---|---|---|
committer | Duarte Meneses <duarte.meneses@sonarsource.com> | 2015-11-03 10:14:38 +0100 |
commit | d5d4548ee4f0c13360ca4f28ff751f927daef663 (patch) | |
tree | 136b63be0a3f2cc6af1982750b349d0e83ada9a1 /it | |
parent | 21659de7af40d0537e97df0bb8f7a4cb4ec390e6 (diff) | |
download | sonarqube-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.java | 11 |
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 */ |