[IntelliJ Platform Gradle Plugin] runIdeForUiTests migration

This commit is contained in:
Jakub Chrzanowski 2024-07-20 07:11:54 +02:00
parent 8fd0dd9d1f
commit 9e04bf383b
No known key found for this signature in database
GPG Key ID: C39095BFD769862E
2 changed files with 25 additions and 2 deletions

View File

@ -161,11 +161,33 @@ Access the [`ProductInfo`](tools_intellij_platform_gradle_plugin_types.md#Produc
### `downloadRobotServerPlugin`
The Robot Server Plugin integration is not yet available. See [`testIdeUi`](tools_intellij_platform_gradle_plugin_tasks.md#testIdeUi).
The Robot Server Plugin can now be downloaded using `plugins { robotServerPlugin() }` dependency helper when declaring a custom task.
### `runIdeForUiTests`
Use [`testIdeUi`](tools_intellij_platform_gradle_plugin_tasks.md#testIdeUi).
The `runIdeForUiTests` task is obsolete and should be replaced with an explicit declaration.
The task running IDE with the Robot Server Plugin should be declared now as a custom `runIde` task with plugin loaded:
```kotlin
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",
)
}
}
plugins {
robotServerPlugin(Constraints.LATEST_VERSION)
}
}
```
### `runPluginVerifier`

View File

@ -227,3 +227,4 @@ intellijPlatform { ... }
```
The plugin also introduces a task listener which allows for creating custom tasks decorated with [](tools_intellij_platform_gradle_plugin_task_awares.md).
See [](tools_intellij_platform_gradle_plugin_recipies.md#awares) for more details.