-
Notifications
You must be signed in to change notification settings - Fork 759
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract UI tests into the separate module
- Loading branch information
Showing
23 changed files
with
94 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
plugins { | ||
java | ||
kotlin("jvm") | ||
id("org.jetbrains.intellij") | ||
} | ||
|
||
group = "org.example" | ||
version = "SNAPSHOT" | ||
|
||
repositories { | ||
mavenCentral() | ||
maven { url = uri("https://cache-redirector.jetbrains.com/intellij-dependencies") } | ||
} | ||
|
||
val kotlinVersion: String by project | ||
val ideaVersion: String by project | ||
val javaVersion: String by project | ||
val remoteRobotVersion: String by project | ||
|
||
dependencies { | ||
testImplementation("org.junit.jupiter:junit-jupiter") | ||
compileOnly("org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion") | ||
testImplementation("org.jetbrains.kotlin:kotlin-test:$kotlinVersion") | ||
testImplementation(testFixtures(project(":"))) // The root project | ||
|
||
testImplementation("com.intellij.remoterobot:remote-robot:$remoteRobotVersion") | ||
testImplementation("com.intellij.remoterobot:remote-fixtures:$remoteRobotVersion") | ||
testImplementation("com.intellij.remoterobot:ide-launcher:$remoteRobotVersion") | ||
testImplementation("com.automation-remarks:video-recorder-junit5:2.0") | ||
} | ||
|
||
tasks { | ||
// This task is disabled because it should be excluded from `gradle test` run (because it's slow) | ||
// I didn't find a better way to exclude except disabling and defining a new task with a different name | ||
test { | ||
useJUnitPlatform() | ||
enabled = false | ||
} | ||
|
||
register<Test>("testUi") { | ||
group = "verification" | ||
useJUnitPlatform() | ||
} | ||
|
||
downloadRobotServerPlugin { | ||
version.set(remoteRobotVersion) | ||
} | ||
|
||
runIdeForUiTests { | ||
systemProperty("robot-server.port", "8082") | ||
systemProperty("ide.mac.message.dialogs.as.sheets", "false") | ||
systemProperty("jb.privacy.policy.text", "<!--999.999-->") | ||
systemProperty("jb.consents.confirmation.enabled", "false") | ||
systemProperty("ide.show.tips.on.startup.default.value", "false") | ||
} | ||
} | ||
|
||
intellij { | ||
version.set(ideaVersion) | ||
type.set("IC") | ||
plugins.set(listOf("java")) | ||
} | ||
|
||
java { | ||
toolchain { | ||
languageVersion.set(JavaLanguageVersion.of(javaVersion)) | ||
} | ||
} | ||
|
||
kotlin { | ||
jvmToolchain { | ||
languageVersion.set(JavaLanguageVersion.of(javaVersion)) | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/test/java/ui/UiTests.kt → ...ij-ui-tests/src/test/kotlin/ui/UiTests.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/test/java/ui/pages/ActionMenuFixture.kt → ...test/kotlin/ui/pages/ActionMenuFixture.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/test/java/ui/pages/DialogFixture.kt → ...src/test/kotlin/ui/pages/DialogFixture.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/test/java/ui/pages/Editor.kt → ...-tests/src/test/kotlin/ui/pages/Editor.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/test/java/ui/pages/Gutter.kt → ...-tests/src/test/kotlin/ui/pages/Gutter.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/test/java/ui/pages/IdeaFrame.kt → ...sts/src/test/kotlin/ui/pages/IdeaFrame.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/test/java/ui/pages/WelcomeFrame.kt → .../src/test/kotlin/ui/pages/WelcomeFrame.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...st/java/ui/pages/WelcomeFrameFixture.java → .../kotlin/ui/pages/WelcomeFrameFixture.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/test/java/ui/utils/JavaExampleSteps.kt → .../test/kotlin/ui/utils/JavaExampleSteps.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/test/java/ui/utils/StepsLogger.kt → ...s/src/test/kotlin/ui/utils/StepsLogger.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/test/java/ui/utils/UiTestWrapper.kt → ...src/test/kotlin/ui/utils/UiTestWrapper.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/test/java/ui/utils/Utils.kt → ...i-tests/src/test/kotlin/ui/utils/Utils.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.