From d5d4548ee4f0c13360ca4f28ff751f927daef663 Mon Sep 17 00:00:00 2001 From: Duarte Meneses Date: Thu, 29 Oct 2015 09:54:36 +0100 Subject: SONAR-6108 Keep batch report if debug mode is enabled --- it/it-tests/src/test/java/it/analysis/BatchTest.java | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'it') 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 */ -- cgit v1.2.3