UI tests — more clear assume message and condition

This commit is contained in:
Vladimir Krivosheev
2018-04-09 16:12:43 +02:00
parent d439783dc0
commit d860824f18
2 changed files with 6 additions and 4 deletions
@@ -48,8 +48,9 @@ class LafTest {
@Before
fun beforeMethod() {
assumeTrue("Not CI server or not Linux", !UsefulTestCase.IS_UNDER_TEAMCITY || !SystemInfoRt.isLinux)
assumeTrue("Not Windows or Windows 10", !SystemInfoRt.isWindows || SystemInfo.isWin10OrNewer)
if (UsefulTestCase.IS_UNDER_TEAMCITY) {
assumeTrue("macOS or Windows 10 are required", SystemInfoRt.isMac || SystemInfo.isWin10OrNewer)
}
changeLafIfNeed(lafName)
}
@@ -47,8 +47,9 @@ class UiDslTest {
@Before
fun beforeMethod() {
assumeTrue("Not CI server or not Linux", !UsefulTestCase.IS_UNDER_TEAMCITY || !SystemInfoRt.isLinux)
assumeTrue("Not Windows or Windows 10", !SystemInfoRt.isWindows || SystemInfo.isWin10OrNewer)
if (UsefulTestCase.IS_UNDER_TEAMCITY) {
assumeTrue("macOS or Windows 10 are required", SystemInfoRt.isMac || SystemInfo.isWin10OrNewer)
}
System.setProperty("idea.ui.comment.copyable", "false")
changeLafIfNeed(lafName)