[MPP][Test] Implement Diagnostics with mpp composite analysis tests

Using the 'MULTIPLATFORM_COMPOSITE_ANALYSIS_MODE' test directive
will add support for testing "cli metadata compilation" and
"ide analysis" _like_ configurations. In this configuration,
dependsOn modules will not be analyzed together with dependents in
the same ModuleDescriptor, but will be passed as separate 'expectedBy'
dependency descriptor.

Used to cover ^KT-50120 inside kotlin.git
This commit is contained in:
sebastian.sellmair
2021-12-15 12:05:19 +01:00
committed by Space
parent 7771e5914d
commit 3598ba1d45
10 changed files with 329 additions and 107 deletions
@@ -47,6 +47,13 @@ fun generateJUnit5CompilerTests(args: Array<String>) {
model("diagnostics/nativeTests")
}
testClass<AbstractDiagnosticsWithMultiplatformCompositeAnalysisTest> {
model(
"diagnostics/testsWithMultiplatformCompositeAnalysis",
pattern = "^(.*)\\.kts?$", excludedPattern = excludedFirTestdataPattern
)
}
testClass<AbstractForeignAnnotationsSourceJavaTest> {
model("diagnostics/foreignAnnotationsTests/tests", excludedPattern = excludedFirTestdataPattern)
model("diagnostics/foreignAnnotationsTests/java8Tests", excludedPattern = excludedFirTestdataPattern)