From: Duarte Meneses Date: Thu, 1 Oct 2015 16:10:31 +0000 (+0200) Subject: IT using sonar.profile without provisioning project X-Git-Tag: 5.2-RC1~133 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=01ac3cca26ddb38857fa0dbc93559ef180894988;p=sonarqube.git IT using sonar.profile without provisioning project --- 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