gui-tests-framework: git configure added to GuiTestCase

This commit is contained in:
Sergey Karashevich
2016-10-09 17:59:25 +03:00
parent 9a79ab55ee
commit 8a504cad23
2 changed files with 9 additions and 1 deletions
@@ -15,9 +15,11 @@
*/
package com.intellij.testGuiFramework.impl;
import com.intellij.testFramework.vcs.ExecutableHelper;
import com.intellij.testGuiFramework.framework.GuiTestBase;
import com.intellij.testGuiFramework.framework.TestWithIde;
import com.intellij.util.net.HttpConfigurable;
import git4idea.config.GitVcsApplicationSettings;
import org.fest.swing.core.FastRobot;
import static com.intellij.testGuiFramework.framework.GuiTestUtil.setUpDefaultProjectCreationLocationPath;
@@ -42,6 +44,7 @@ public class GuiTestCase extends GuiTestBase {
setIdeSettings();
setUpSdks();
setPathToGit();
}
private static void setIdeSettings() {
@@ -52,4 +55,8 @@ public class GuiTestCase extends GuiTestBase {
ideSettings.PROXY_PORT = 80;
}
private static void setPathToGit() {
GitVcsApplicationSettings.getInstance().setPathToGit(ExecutableHelper.findGitExecutable());
}
}
@@ -32,6 +32,7 @@
</SOURCES>
</library>
</orderEntry>
<orderEntry type="module" module-name="git4idea" scope="TEST" />
<orderEntry type="module" module-name="git4idea" />
<orderEntry type="module" module-name="vcs-tests" />
</component>
</module>