aboutsummaryrefslogtreecommitdiffstats
path: root/it/src
diff options
context:
space:
mode:
Diffstat (limited to 'it/src')
-rw-r--r--it/src/test/java/com/sonar/runner/it/JavaTest.java13
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"))