diff options
author | Jiaxiang Chen <jiaxiang@google.com> | 2022-09-01 09:42:30 -0700 |
---|---|---|
committer | Jiaxiang Chen <roaringacw@gmail.com> | 2022-11-01 00:32:35 -0700 |
commit | 26745cc592aedaafc4feb24c6977f6d397a4ffb3 (patch) | |
tree | bab1bb490d5034476a9c9f6ef5ff0485816366fe /test-utils/src/main/kotlin/com | |
parent | 5d18ed32e8caf3ecd9952071aa99fa9ebe00825e (diff) | |
download | ksp-26745cc592aedaafc4feb24c6977f6d397a4ffb3.tar.gz |
AA: support multiple module test for AA.
old test framework implementation has MockApplication created multiple times,
causing issues with AA stand alone mode initialization.
using a cli compiler from another class loader to avoid this issue.
Diffstat (limited to 'test-utils/src/main/kotlin/com')
-rw-r--r-- | test-utils/src/main/kotlin/com/google/devtools/ksp/testutils/AbstractKSPTest.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test-utils/src/main/kotlin/com/google/devtools/ksp/testutils/AbstractKSPTest.kt b/test-utils/src/main/kotlin/com/google/devtools/ksp/testutils/AbstractKSPTest.kt index 1c455f74..b2d89bfb 100644 --- a/test-utils/src/main/kotlin/com/google/devtools/ksp/testutils/AbstractKSPTest.kt +++ b/test-utils/src/main/kotlin/com/google/devtools/ksp/testutils/AbstractKSPTest.kt @@ -160,7 +160,7 @@ abstract class AbstractKSPTest(frontend: FrontendKind<*>) : DisposableTest() { // dist/kotlinc/lib/* // // No, sourceFileProvider doesn't group files by module unfortunately. Let's do it by ourselves. - fun compileModule(module: TestModule, testServices: TestServices) { + open fun compileModule(module: TestModule, testServices: TestServices) { val javaFiles = module.writeJavaFiles() val compilerConfiguration = testServices.compilerConfigurationProvider.getCompilerConfiguration(module) val dependencies = module.allDependencies.map { outDirForModule(it.moduleName) } |