Disable KaptImportingTest.testModulePerSourceSet in AS (KT-32683)
#KT-32683 Fixed
This commit is contained in:
@@ -30,6 +30,11 @@ class KaptImportingTest : MultiplePluginVersionGradleImportingTestCase() {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun testModulePerSourceSet() {
|
fun testModulePerSourceSet() {
|
||||||
|
// Disable testing import module per source set test in Android Studio as this mode is not supported in Android Studio
|
||||||
|
if (isAndroidStudio()) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
configureByFiles()
|
configureByFiles()
|
||||||
importProject(true)
|
importProject(true)
|
||||||
|
|
||||||
|
|||||||
+2
@@ -13,3 +13,5 @@ fun MultiplatformProjectImportingTest.shouldRunTest(kotlinPluginVersion: String,
|
|||||||
fun NewMultiplatformProjectImportingTest.shouldRunTest(kotlinPluginVersion: String, gradleVersion: String): Boolean {
|
fun NewMultiplatformProjectImportingTest.shouldRunTest(kotlinPluginVersion: String, gradleVersion: String): Boolean {
|
||||||
return !gradleVersion.startsWith("3.")
|
return !gradleVersion.startsWith("3.")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun KaptImportingTest.isAndroidStudio() = false
|
||||||
+8
@@ -0,0 +1,8 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||||
|
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.jetbrains.kotlin.gradle
|
||||||
|
|
||||||
|
fun KaptImportingTest.isAndroidStudio() = true
|
||||||
|
|||||||
+8
@@ -0,0 +1,8 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||||
|
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.jetbrains.kotlin.gradle
|
||||||
|
|
||||||
|
fun KaptImportingTest.isAndroidStudio() = true
|
||||||
|
|||||||
+8
@@ -0,0 +1,8 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||||
|
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.jetbrains.kotlin.gradle
|
||||||
|
|
||||||
|
fun KaptImportingTest.isAndroidStudio() = true
|
||||||
|
|||||||
+8
@@ -0,0 +1,8 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||||
|
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.jetbrains.kotlin.gradle
|
||||||
|
|
||||||
|
fun KaptImportingTest.isAndroidStudio() = true
|
||||||
|
|||||||
Reference in New Issue
Block a user