mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-28 01:07:49 +08:00
[IntelliJ Platform Gradle Plugin] runIdeForUiTests
This commit is contained in:
parent
39687cddfd
commit
8f3271832a
@ -72,4 +72,7 @@
|
|||||||
<secondary-label id="incubating" name="Incubating" color="strawberry">
|
<secondary-label id="incubating" name="Incubating" color="strawberry">
|
||||||
This item is marked as incubating.
|
This item is marked as incubating.
|
||||||
</secondary-label>
|
</secondary-label>
|
||||||
|
<secondary-label id="unavailable" name="Unavailable">
|
||||||
|
This item is marked as unavailable.
|
||||||
|
</secondary-label>
|
||||||
</labels>
|
</labels>
|
||||||
|
@ -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?
|
### How to disable the automatic reload of dynamic plugins?
|
||||||
|
|
||||||
See [](ide_development_instance.md#enabling-auto-reload) for important caveats.
|
See [](ide_development_instance.md#enabling-auto-reload) for important caveats.
|
||||||
|
@ -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`
|
||||||
{#setupDependencies}
|
{#setupDependencies}
|
||||||
|
|
||||||
@ -1397,6 +1427,8 @@ The task itself isn't mutated and a dedicated [`prepareTest`](#prepareTest) task
|
|||||||
## `testIde`
|
## `testIde`
|
||||||
{#testIde}
|
{#testIde}
|
||||||
|
|
||||||
|
<secondary-label ref="unavailable"/>
|
||||||
|
|
||||||
<link-summary>Runs tests using a custom IntelliJ Platform with the developed plugin installed.</link-summary>
|
<link-summary>Runs tests using a custom IntelliJ Platform with the developed plugin installed.</link-summary>
|
||||||
|
|
||||||
<tldr>
|
<tldr>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user