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:
Roman Golyshev
2022-02-22 00:52:15 +03:00
parent ffcbc583d0
commit 6e649dd29c
3 changed files with 75 additions and 1 deletions
@@ -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()