testFramework

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

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.

See also


fun testFramework(type: TestFrameworkType, version: Provider<String>)

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

See also