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

Change the gradle task for the UI tests

This commit is contained in:
Alex Plate 2024-07-19 09:05:11 +03:00
parent 6c9b39a623
commit 907e44b1d7
No known key found for this signature in database
GPG Key ID: 0B97153C8FFEC09F
4 changed files with 24 additions and 18 deletions

View File

@ -23,7 +23,7 @@ jobs:
- name: Run Idea
run: |
mkdir -p build/reports
gradle testIdeUi -Doctopus.handler=false > build/reports/idea.log &
gradle runIdeForUiTests -Doctopus.handler=false > build/reports/idea.log &
- name: Wait for Idea started
uses: jtalk/url-health-check-action@v3
with:
@ -63,7 +63,7 @@ jobs:
# export DISPLAY=:99.0
# Xvfb -ac :99 -screen 0 1920x1080x16 &
# mkdir -p build/reports
# gradle :testIdeUi #> build/reports/idea.log
# gradle :runIdeForUiTests #> build/reports/idea.log
# - name: Wait for Idea started
# uses: jtalk/url-health-check-action@1.5
# with:

View File

@ -26,7 +26,7 @@ jobs:
- name: Run Idea
run: |
mkdir -p build/reports
gradle :testIdeUi -PideaType=PC > build/reports/idea.log &
gradle :runIdeForUiTests -PideaType=PC > build/reports/idea.log &
- name: Wait for Idea started
uses: jtalk/url-health-check-action@v3
with:

View File

@ -23,7 +23,7 @@ jobs:
- name: Run Idea
run: |
mkdir -p build/reports
gradle testIdeUi > build/reports/idea.log &
gradle runIdeForUiTests > build/reports/idea.log &
- name: Wait for Idea started
uses: jtalk/url-health-check-action@v3
with:
@ -63,7 +63,7 @@ jobs:
# export DISPLAY=:99.0
# Xvfb -ac :99 -screen 0 1920x1080x16 &
# mkdir -p build/reports
# gradle :testIdeUi #> build/reports/idea.log
# gradle :runIdeForUiTests #> build/reports/idea.log
# - name: Wait for Idea started
# uses: jtalk/url-health-check-action@1.5
# with:

View File

@ -222,6 +222,25 @@ tasks {
// localPath = file("/Users/{user}/Applications/WebStorm.app")
// }
val runIdeForUiTests by intellijPlatformTesting.runIde.registering {
task {
jvmArgumentProviders += CommandLineArgumentProvider {
listOf(
"-Drobot-server.port=8082",
"-Dide.mac.message.dialogs.as.sheets=false",
"-Djb.privacy.policy.text=<!--999.999-->",
"-Djb.consents.confirmation.enabled=false",
"-Dide.show.tips.on.startup.default.value=false",
"-Doctopus.handler=" + (System.getProperty("octopus.handler") ?: true),
)
}
}
plugins {
robotServerPlugin(remoteRobotVersion)
}
}
val runIdeSplitMode by intellijPlatformTesting.runIde.registering {
splitMode = true
splitModeTarget = SplitModeAware.SplitModeTarget.FRONTEND
@ -231,19 +250,6 @@ tasks {
version.set(splitModeVersion)
}
// Start the default IDE with both IdeaVim and the robot server plugin installed, ready to run a UI test task. The
// robot server plugin is automatically added as a dependency to this task, and Gradle will take care of downloading.
// Note that the CustomTestIdeUiTask can be used to run tests against a different IDE
testIdeUi {
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("octopus.handler", System.getProperty("octopus.handler") ?: true)
}
// Add plugin open API sources to the plugin ZIP
val sourcesJar by registering(Jar::class) {
dependsOn(moduleSources)