Parcelize: Improve testing infrarstructure
- Support newer android versions - Allow testing against Java files using android APIs - Update test expectations - Auto-generate ParcelBoxTests - Create tests for the JVM IR backend
This commit is contained in:
committed by
Alexander Udalov
parent
d62b353ab5
commit
1f97486fdd
@@ -722,12 +722,15 @@ public abstract class CodegenTestCase extends KotlinBaseTest<KotlinBaseTest.Test
|
||||
javaClasspath.add(ForTestCompileRuntime.androidAnnotationsForTests().getPath());
|
||||
}
|
||||
javaClasspath.addAll(CollectionsKt.map(getExtraDependenciesFromKotlinCompileClasspath(), File::getPath));
|
||||
updateJavaClasspath(javaClasspath);
|
||||
|
||||
javaClassesOutputDirectory = getJavaClassesOutputDirectory();
|
||||
compileJava(findJavaSourcesInDirectory(javaSourceDir), javaClasspath, javacOptions, javaClassesOutputDirectory);
|
||||
}
|
||||
}
|
||||
|
||||
protected void updateJavaClasspath(@NotNull List<String> javaClasspath) {}
|
||||
|
||||
@NotNull
|
||||
protected static List<String> extractJavacOptions(@NotNull List<TestFile> files) {
|
||||
List<String> javacOptions = new ArrayList<>(0);
|
||||
|
||||
Reference in New Issue
Block a user