aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2015-10-01 18:10:31 +0200
committerDuarte Meneses <duarte.meneses@sonarsource.com>2015-10-01 18:10:31 +0200
commit01ac3cca26ddb38857fa0dbc93559ef180894988 (patch)
tree75eb608704112716e89e8444cf30c3f52810831c
parent5b6f2f65d83051bc37954818927e80414c7e6db9 (diff)
downloadsonarqube-01ac3cca26ddb38857fa0dbc93559ef180894988.tar.gz
sonarqube-01ac3cca26ddb38857fa0dbc93559ef180894988.zip
IT using sonar.profile without provisioning project
-rw-r--r--it/it-tests/src/test/java/batch/BatchTest.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/it/it-tests/src/test/java/batch/BatchTest.java b/it/it-tests/src/test/java/batch/BatchTest.java
index a3a7edadf6c..b7bc903fd5c 100644
--- a/it/it-tests/src/test/java/batch/BatchTest.java
+++ b/it/it-tests/src/test/java/batch/BatchTest.java
@@ -74,6 +74,15 @@ public class BatchTest {
Resource branch = sonar.find(new ResourceQuery("com.sonarsource.it.samples:multi-modules-sample:branch/0.x"));
assertThat(branch.getName()).isEqualTo("Sonar :: Integration Tests :: Multi-modules Sample branch/0.x");
}
+
+ @Test
+ public void use_sonar_profile_without_provisioning_project() {
+ scan("shared/xoo-multi-modules-sample",
+ "sonar.profile", "one-issue-per-line",
+ "sonar.verbose", "true");
+ Resource r = orchestrator.getServer().getWsClient().find(ResourceQuery.createForMetrics("com.sonarsource.it.samples:multi-modules-sample", "violations"));
+ assertThat(r.getMeasureIntValue("violations")).isEqualTo(61);
+ }
/**
* SONAR-2907