Added a test for the fix of KT-16434.
(cherry picked from commit 5a6d06f)
This commit is contained in:
+15
@@ -210,6 +210,21 @@ abstract class AbstractKotlinAndroidWithJackGradleTests(
|
||||
super.defaultBuildOptions().copy(androidHome = File("../../../dependencies/android-sdk-for-tests"),
|
||||
androidGradlePluginVersion = androidGradlePluginVersion, javaHome = File(getEnvJDK_18()))
|
||||
|
||||
@Test
|
||||
fun testAndroidTestCompilation() {
|
||||
val project = Project("AndroidJackProject", gradleVersion)
|
||||
|
||||
project.build("assembleAndroidTest") {
|
||||
assertSuccessful()
|
||||
assertFileExists("Android/build/tmp/kotlin-classes/flavor1Debug.jar")
|
||||
assertFileExists("Android/build/tmp/kotlin-classes/flavor2Debug.jar")
|
||||
assertFileExists("Android/build/tmp/kotlin-classes/flavor1DebugAndroidTest.jar")
|
||||
assertFileExists("Android/build/tmp/kotlin-classes/flavor2DebugAndroidTest.jar")
|
||||
assertFileExists("Android/build/outputs/apk/Android-flavor1-debug-androidTest.apk")
|
||||
assertFileExists("Android/build/outputs/apk/Android-flavor2-debug-androidTest.apk")
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
fun testSimpleCompile() {
|
||||
val project = Project("AndroidJackProject", gradleVersion)
|
||||
|
||||
Reference in New Issue
Block a user