From 01ac3cca26ddb38857fa0dbc93559ef180894988 Mon Sep 17 00:00:00 2001 From: Duarte Meneses Date: Thu, 1 Oct 2015 18:10:31 +0200 Subject: [PATCH] IT using sonar.profile without provisioning project --- it/it-tests/src/test/java/batch/BatchTest.java | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- 2.39.5