FIR IDE: Add a way to use test compiler plugin in FIR IDE tests
Compiler plugins can be enabled by WITH_FIR_TEST_COMPILER_PLUGIN directive
This commit is contained in:
@@ -37,6 +37,10 @@ dependencies {
|
||||
testApi(toolsJar())
|
||||
testApiJUnit5()
|
||||
testApi(project(":analysis:symbol-light-classes"))
|
||||
|
||||
// We use 'api' instead of 'implementation' because other modules might be using these jars indirectly
|
||||
testApi(project(":plugins:fir-plugin-prototype"))
|
||||
testApi(projectTests(":plugins:fir-plugin-prototype"))
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
@@ -48,6 +52,9 @@ projectTest(jUnitMode = JUnitMode.JUnit5) {
|
||||
dependsOn(":dist")
|
||||
workingDir = rootDir
|
||||
useJUnitPlatform()
|
||||
|
||||
// PluginAnnotationsProvider needs this jar during tests
|
||||
dependsOn(":plugins:fir-plugin-prototype:plugin-annotations:jar")
|
||||
}
|
||||
|
||||
testsJar()
|
||||
|
||||
Reference in New Issue
Block a user