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
@@ -10,7 +10,7 @@ val robolectricClasspath by configurations.creating
|
||||
val androidExtensionsRuntimeForTests by configurations.creating
|
||||
|
||||
dependencies {
|
||||
testCompileOnly(intellijCoreDep()) { includeJars("intellij-core") }
|
||||
testCompile(intellijCoreDep()) { includeJars("intellij-core") }
|
||||
|
||||
compileOnly(project(":compiler:util"))
|
||||
compileOnly(project(":compiler:plugin-api"))
|
||||
@@ -64,7 +64,7 @@ projectTest {
|
||||
useAndroidJar()
|
||||
doFirst {
|
||||
systemProperty("androidExtensionsRuntime.classpath", androidExtensionsRuntimeForTests.asPath)
|
||||
val androidPluginPath = File(intellijRootDir(), "plugins/android").canonicalPath
|
||||
val androidPluginPath = File(intellijRootDir(), "plugins/android/lib").canonicalPath
|
||||
systemProperty("ideaSdk.androidPlugin.path", androidPluginPath)
|
||||
systemProperty("robolectric.classpath", robolectricClasspath.asPath)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user