A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://kotlin.github.io/analysis-api/testing-in-k2-locally.html below:

Testing in K2 Locally | Kotlin Analysis API Documentation

Testing in K2 Locally

To test the plugin in K2 mode locally, pass the -Didea.kotlin.plugin.use.k2=true VM option to the IntelliJ IDEA run test, or to the test task.

When using the IntelliJ Platform Gradle Plugin, you can specify the option directly in the build.gradle.kts file.

To run in a debug IntelliJ IDEA instance, submit the option to the RunIdeTask:

tasks.named<RunIdeTask>("runIde") { jvmArgumentProviders += CommandLineArgumentProvider { listOf("-Didea.kotlin.plugin.use.k2=true") } }

To run tests against the Kotlin IntelliJ IDEA plugin in the K2 mode, add the option to the test task:

tasks.test { jvmArgumentProviders += CommandLineArgumentProvider { listOf("-Didea.kotlin.plugin.use.k2=true") } }

Last modified: 11 September 2024


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4