[Analysis API] Run code fragment compilation tests against libraries
This commit is contained in:
+12
-12
@@ -82,6 +82,18 @@ internal fun AnalysisApiTestGroup.generateAnalysisApiTests() {
|
||||
}
|
||||
}
|
||||
|
||||
component(
|
||||
"compilerFacility",
|
||||
filter = testModuleKindIs(TestModuleKind.Source, TestModuleKind.LibrarySource)
|
||||
and frontendIs(FrontendKind.Fir)
|
||||
and analysisSessionModeIs(AnalysisSessionMode.Normal)
|
||||
and analysisApiModeIs(AnalysisApiMode.Ide)
|
||||
) {
|
||||
test(AbstractCompilerFacilityTest::class) {
|
||||
model("compilation", pattern = TestGeneratorUtil.KT_WITHOUT_DOTS_IN_NAME)
|
||||
}
|
||||
}
|
||||
|
||||
group(filter = testModuleKindIs(TestModuleKind.Source, TestModuleKind.ScriptSource)) {
|
||||
generateAnalysisApiComponentsTests()
|
||||
generateAnalysisApiNonComponentsTests()
|
||||
@@ -220,18 +232,6 @@ private fun AnalysisApiTestGroup.generateAnalysisApiComponentsTests() {
|
||||
}
|
||||
}
|
||||
|
||||
component(
|
||||
"compilerFacility",
|
||||
filter = testModuleKindIs(TestModuleKind.Source)
|
||||
and frontendIs(FrontendKind.Fir)
|
||||
and analysisSessionModeIs(AnalysisSessionMode.Normal)
|
||||
and analysisApiModeIs(AnalysisApiMode.Ide)
|
||||
) {
|
||||
test(AbstractCompilerFacilityTest::class) {
|
||||
model("compilation", pattern = TestGeneratorUtil.KT_WITHOUT_DOTS_IN_NAME)
|
||||
}
|
||||
}
|
||||
|
||||
component("compileTimeConstantProvider") {
|
||||
test(AbstractCompileTimeConstantEvaluatorTest::class) {
|
||||
model(it, "evaluate")
|
||||
|
||||
Reference in New Issue
Block a user