testFramework

fun testFramework(type: TestFrameworkType, version: String = Constraints.CLOSEST_VERSION, configurationName: String = Configurations.INTELLIJ_PLATFORM_TEST_DEPENDENCIES)

Adds a dependency on the test-framework library or its variant, required for testing plugins.

There are multiple Test Framework variants available, which provide additional classes for testing specific modules, like: JUnit4, JUnit 5, Maven, JavaScript, Go, Java, ReSharper, etc.

The version, if absent, is determined by the IntelliJ Platform build number.

Parameters

type

Test framework variant type.

version

Test framework library version.

configurationName

The name of the configuration to add the dependency to.

See also


fun testFramework(type: TestFrameworkType, version: Provider<String>, configurationName: String = Configurations.INTELLIJ_PLATFORM_TEST_DEPENDENCIES)

Adds a dependency on the test-framework library required for testing plugins.

There are multiple Test Framework variants available, which provide additional classes for testing specific modules, like: JUnit4, JUnit 5, Maven, JavaScript, Go, Java, ReSharper, etc.

The version, if absent, is determined by the IntelliJ Platform build number.

Parameters

type

Test Framework variant type.

version

Library version.

configurationName

The name of the configuration to add the dependency to.

See also