1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-05-13 12:34:06 +02:00

Remove intellij plugin dependency for UI tests

This commit is contained in:
Alex Plate 2024-02-13 12:59:13 +02:00
parent b9721218ab
commit 3531574e5e
No known key found for this signature in database
GPG Key ID: 0B97153C8FFEC09F
3 changed files with 8 additions and 81 deletions
tests
ui-fixtures
ui-ij-tests
ui-py-tests

View File

@ -1,7 +1,6 @@
plugins {
java
kotlin("jvm")
id("org.jetbrains.intellij")
id("java-test-fixtures")
}
@ -24,7 +23,6 @@ dependencies {
testFixturesImplementation("com.intellij.remoterobot:remote-robot:$remoteRobotVersion")
testFixturesImplementation("com.intellij.remoterobot:remote-fixtures:$remoteRobotVersion")
testFixturesImplementation("com.intellij.remoterobot:ide-launcher:$remoteRobotVersion")
testFixturesImplementation("com.automation-remarks:video-recorder-junit5:2.0")
}
tasks {
@ -34,36 +32,6 @@ tasks {
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")
}
verifyPlugin {
enabled = false
}
publishPlugin {
enabled = false
}
}
intellij {
version.set(ideaVersion)
type.set("IC")
}
java {

View File

@ -1,7 +1,6 @@
plugins {
java
kotlin("jvm")
id("org.jetbrains.intellij")
}
repositories {
@ -23,7 +22,6 @@ dependencies {
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")
}
@ -38,33 +36,12 @@ tasks {
register<Test>("testUi") {
group = "verification"
useJUnitPlatform()
}
downloadRobotServerPlugin {
version.set(remoteRobotVersion)
// This is needed for the robot to access the message of the exception
// Usually these opens are provided by the intellij gradle plugin
// https://github.com/JetBrains/gradle-intellij-plugin/blob/b21e3f382e9885948a6427001d5e64234c602613/src/main/kotlin/org/jetbrains/intellij/utils/OpenedPackages.kt#L26
jvmArgs("--add-opens", "java.base/java.lang=ALL-UNNAMED")
}
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")
}
verifyPlugin {
enabled = false
}
publishPlugin {
enabled = false
}
}
intellij {
version.set(ideaVersion)
type.set("IC")
plugins.set(listOf("java"))
}
java {

View File

@ -1,7 +1,6 @@
plugins {
java
kotlin("jvm")
id("org.jetbrains.intellij")
}
repositories {
@ -38,29 +37,12 @@ tasks {
register<Test>("testUi") {
group = "verification"
useJUnitPlatform()
}
downloadRobotServerPlugin {
version.set(remoteRobotVersion)
// This is needed for the robot to access the message of the exception
// Usually these opens are provided by the intellij gradle plugin
// https://github.com/JetBrains/gradle-intellij-plugin/blob/b21e3f382e9885948a6427001d5e64234c602613/src/main/kotlin/org/jetbrains/intellij/utils/OpenedPackages.kt#L26
jvmArgs("--add-opens", "java.base/java.lang=ALL-UNNAMED")
}
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")
systemProperty("eap.require.license", "false")
}
verifyPlugin {
enabled = false
}
}
intellij {
version.set(ideaVersion)
type.set("PY")
}
java {