Просмотр исходного кода

Improve error message if @RunLocally is committed (#14216)

Change-Id: Ic35b71a01b207ff87072d2e46f34f171ec581fe0
tags/7.3.0.rc1
Leif Åstrand 10 лет назад
Родитель
Сommit
0ebb95d7b0
1 измененных файлов: 4 добавлений и 0 удалений
  1. 4
    0
      uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java

+ 4
- 0
uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java Просмотреть файл

@@ -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 {

Загрузка…
Отмена
Сохранить