]> source.dussan.org Git - vaadin-framework.git/commitdiff
Improve error message if @RunLocally is committed (#14216)
authorLeif Åstrand <leif@vaadin.com>
Fri, 11 Jul 2014 15:26:51 +0000 (18:26 +0300)
committerVaadin Code Review <review@vaadin.com>
Tue, 15 Jul 2014 11:12:03 +0000 (11:12 +0000)
Change-Id: Ic35b71a01b207ff87072d2e46f34f171ec581fe0

uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java

index fa704d7b0beba077a18d573029ae0158709262c6..74ddc6cb0cc7df721f1a73643c9e03c60b164901 100644 (file)
@@ -122,6 +122,10 @@ public abstract class AbstractTB3Test extends TestBenchTestCase {
 
         RunLocally runLocally = getClass().getAnnotation(RunLocally.class);
         if (runLocally != null) {
+            if (System.getenv().containsKey("TEAMCITY_VERSION")) {
+                throw new RuntimeException(
+                        "@RunLocally is not supported for tests run on the build server");
+            }
             capabilities = runLocally.value().getDesiredCapabilities();
             setupLocalDriver(capabilities);
         } else {