diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2016-03-08 14:23:02 +0100 |
---|---|---|
committer | Duarte Meneses <duarte.meneses@sonarsource.com> | 2016-03-08 16:48:14 +0100 |
commit | c6cb6e144fe0238bdb181fc2713374a4bab7a9dc (patch) | |
tree | cbc7f833a59885c3a4e6430e79d4ed83cfc8f311 /it | |
parent | 6dcf5f86801005d810d895e881d21b7181e4473e (diff) | |
download | sonar-scanner-cli-c6cb6e144fe0238bdb181fc2713374a4bab7a9dc.tar.gz sonar-scanner-cli-c6cb6e144fe0238bdb181fc2713374a4bab7a9dc.zip |
SONARUNNER-153 sonar.verbose and sonar.log.level do not work
Diffstat (limited to 'it')
-rw-r--r-- | it/src/test/java/com/sonar/runner/it/JavaTest.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/it/src/test/java/com/sonar/runner/it/JavaTest.java b/it/src/test/java/com/sonar/runner/it/JavaTest.java index e997a8b..e092ebb 100644 --- a/it/src/test/java/com/sonar/runner/it/JavaTest.java +++ b/it/src/test/java/com/sonar/runner/it/JavaTest.java @@ -233,6 +233,19 @@ public class JavaTest extends ScannerTestCase { assertThat(log).contains("(analysis is platform dependent)"); } + /** + * SONARUNNER-153 + */ + @Test + public void should_enable_verbose() { + // this line should appear in all versions (LTS-DEV) in debug only + String expectedLog = "Available languages:"; + SonarRunner build = newScanner(new File("projects/java-sample")) + .setProperty("sonar.verbose", "true"); + String logs = orchestrator.executeBuild(build).getLogs(); + assertThat(logs).contains(expectedLog); + } + @Test public void should_fail_if_unable_to_connect() { SonarRunner build = newScanner(new File("projects/java-sample")) |