mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-30 18:27:49 +08:00
[IntelliJ Platform Gradle Plugin] runIdeForUiTests
migration
This commit is contained in:
parent
8fd0dd9d1f
commit
9e04bf383b
@ -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`
|
||||
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user