diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2017-01-10 15:00:03 +0100 |
---|---|---|
committer | Duarte Meneses <duarte.meneses@sonarsource.com> | 2017-01-11 11:45:58 +0100 |
commit | 750fd412e0b11a071c5a3d2677cda289713d82e2 (patch) | |
tree | 7a86efb390f5e8e75a80d31058a7b858a2033882 /it | |
parent | 60f2dd5f30366274cdb0942a3d1f07b095a5d002 (diff) | |
download | sonarqube-750fd412e0b11a071c5a3d2677cda289713d82e2.tar.gz sonarqube-750fd412e0b11a071c5a3d2677cda289713d82e2.zip |
SONAR-8518 "sonar.profile" makes the analysis fail in preview mode
Diffstat (limited to 'it')
-rw-r--r-- | it/it-tests/src/test/java/it/analysis/IssuesModeTest.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/it/it-tests/src/test/java/it/analysis/IssuesModeTest.java b/it/it-tests/src/test/java/it/analysis/IssuesModeTest.java index 8b1e7bd799b..905ceb7abb8 100644 --- a/it/it-tests/src/test/java/it/analysis/IssuesModeTest.java +++ b/it/it-tests/src/test/java/it/analysis/IssuesModeTest.java @@ -206,6 +206,22 @@ public class IssuesModeTest { assertThat(result.getLogs()).doesNotContain("'One Issue Per Line' skipped because there is no related file in current project"); ItUtils.assertIssuesInJsonReport(result, 3, 0, 17); } + + // SONAR-8518 + @Test + public void shoud_support_sonar_profile_prop() throws IOException { + restoreProfile("one-issue-per-line.xml"); + restoreProfile("empty.xml"); + orchestrator.getServer().provisionProject("sample", "xoo-sample"); + orchestrator.getServer().associateProjectToQualityProfile("sample", "xoo", "empty"); + + SonarScanner runner = configureRunner("shared/xoo-sample", + "sonar.verbose", "true", + "sonar.analysis.mode", "issues", + "sonar.profile", "one-issue-per-line"); + BuildResult result = orchestrator.executeBuild(runner); + ItUtils.assertIssuesInJsonReport(result, 17, 0, 0); + } // SONAR-5715 @Test |