diff options
Diffstat (limited to 'it/src')
-rw-r--r-- | it/src/test/java/com/sonarsource/scanner/it/ScannerTest.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/it/src/test/java/com/sonarsource/scanner/it/ScannerTest.java b/it/src/test/java/com/sonarsource/scanner/it/ScannerTest.java index f003df2..c0c2875 100644 --- a/it/src/test/java/com/sonarsource/scanner/it/ScannerTest.java +++ b/it/src/test/java/com/sonarsource/scanner/it/ScannerTest.java @@ -198,4 +198,15 @@ public class ScannerTest extends ScannerTestCase { assertThat(logs).containsPattern("Too small (initial|maximum) heap"); } + // SQSCANNER-24 + @Test + public void should_override_project_settings_path() { + File projectHome = new File("projects/override-project-settings-path"); + SonarScanner build = newScanner(projectHome) + .setProperty("project.settings", new File(projectHome, "conf/sq-project.properties").getAbsolutePath()); + orchestrator.executeBuild(build); + + assertThat(getComponent("sample-with-custom-settings-path").getName()).isEqualTo("Test with custom settings location"); + } + } |