[IntelliJ Platform Gradle Plugin] runIdeForUiTests

This commit is contained in:
Jakub Chrzanowski 2024-07-24 14:13:38 +02:00
parent 39687cddfd
commit 8f3271832a
No known key found for this signature in database
GPG Key ID: C39095BFD769862E
3 changed files with 40 additions and 0 deletions

View File

@ -72,4 +72,7 @@
<secondary-label id="incubating" name="Incubating" color="strawberry">
This item is marked as incubating.
</secondary-label>
<secondary-label id="unavailable" name="Unavailable">
This item is marked as unavailable.
</secondary-label>
</labels>

View File

@ -20,6 +20,11 @@ tasks {
```
### Task `runIdeForUiTests` not found
The [`runIdeForUiTests`](tools_intellij_platform_gradle_plugin_tasks.md#runIdeForUiTests) is no longer registeredby default.
Follow the task documentation for more details.
### How to disable the automatic reload of dynamic plugins?
See [](ide_development_instance.md#enabling-auto-reload) for important caveats.

View File

@ -1135,6 +1135,36 @@ To register a customized task, use [`intelliJPlatformTestingExtension.runIde`](t
## `runIdeForUiTests`
{#runIdeForUiTests}
<secondary-label ref="unavailable"/>
<link-summary>Runs the IDE instance using the currently selected IntelliJ Platform with the built plugin and Robot Server plugin loaded.</link-summary>
Runs the IDE instance using the currently selected IntelliJ Platform with the built plugin and Robot Server plugin loaded.
This task is not available by default and needs to be registered manually by applying the following code:
```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()
}
}
```
## `setupDependencies`
{#setupDependencies}
@ -1397,6 +1427,8 @@ The task itself isn't mutated and a dedicated [`prepareTest`](#prepareTest) task
## `testIde`
{#testIde}
<secondary-label ref="unavailable"/>
<link-summary>Runs tests using a custom IntelliJ Platform with the developed plugin installed.</link-summary>
<tldr>