aboutsummaryrefslogtreecommitdiffstats
path: root/it
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2017-01-10 15:00:03 +0100
committerDuarte Meneses <duarte.meneses@sonarsource.com>2017-01-11 11:45:58 +0100
commit750fd412e0b11a071c5a3d2677cda289713d82e2 (patch)
tree7a86efb390f5e8e75a80d31058a7b858a2033882 /it
parent60f2dd5f30366274cdb0942a3d1f07b095a5d002 (diff)
downloadsonarqube-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.java16
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