diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2015-08-27 14:09:23 +0200 |
---|---|---|
committer | Duarte Meneses <duarte.meneses@sonarsource.com> | 2015-08-28 08:37:33 +0200 |
commit | 38d8b26a2aafe04e478e91e46511cd37e55ea47b (patch) | |
tree | 5addab708c123940d158dfcf4fff7fc0881955e0 /it | |
parent | bbee5baf5579ae037ef9ccae69fc93ca85bfc1cd (diff) | |
download | sonar-scanner-cli-38d8b26a2aafe04e478e91e46511cd37e55ea47b.tar.gz sonar-scanner-cli-38d8b26a2aafe04e478e91e46511cd37e55ea47b.zip |
Run ITs with SQ 5.2/5.1.2/LTS
Diffstat (limited to 'it')
-rw-r--r-- | it/src/test/java/com/sonar/runner/it/CacheTest.java | 6 | ||||
-rw-r--r-- | it/src/test/java/com/sonar/runner/it/JavaTest.java | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/it/src/test/java/com/sonar/runner/it/CacheTest.java b/it/src/test/java/com/sonar/runner/it/CacheTest.java index df6186f..1b2f6ca 100644 --- a/it/src/test/java/com/sonar/runner/it/CacheTest.java +++ b/it/src/test/java/com/sonar/runner/it/CacheTest.java @@ -19,6 +19,8 @@ */ package com.sonar.runner.it; +import org.junit.Assume; + import org.junit.BeforeClass; import org.junit.rules.TemporaryFolder; import org.junit.Rule; @@ -64,6 +66,8 @@ public class CacheTest extends RunnerTestCase { @Test public void testIssuesMode() throws IOException { + Assume.assumeTrue(orchestrator.getServer().version().isGreaterThanOrEquals("5.2")); + // online, without cache -> should sync ensureStarted(); SonarRunner build = createRunner("issues", true); @@ -87,6 +91,8 @@ public class CacheTest extends RunnerTestCase { @Test public void testPublishModeOffline() throws IOException { + Assume.assumeTrue(orchestrator.getServer().version().isGreaterThanOrEquals("5.2")); + // online (cache not used) ensureStarted(); SonarRunner build = createRunner("publish"); 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 f5ec9e0..2e82c64 100644 --- a/it/src/test/java/com/sonar/runner/it/JavaTest.java +++ b/it/src/test/java/com/sonar/runner/it/JavaTest.java @@ -53,7 +53,7 @@ public class JavaTest extends RunnerTestCase { SonarRunner build = newRunner(new File("projects/java-sample")) .setProperty("sonar.verbose", "true") - .addArguments("-e", "-X"); + .addArguments("-e"); // SONARPLUGINS-3061 // Add a trailing slash build.setProperty("sonar.host.url", orchestrator.getServer().getUrl() + "/"); |