Disable GradleInspectionTests in AndroidStudio

This commit is contained in:
Andrey Uskov
2019-04-15 20:02:01 +03:00
parent 364274ef90
commit c6f29cbf38
5 changed files with 37 additions and 0 deletions
@@ -28,6 +28,11 @@ import org.junit.Test
import java.io.File
class GradleInspectionTest : GradleImportingTestCase() {
// Disable gradle inspection tests in AndroidStudio as they are disabled in distribution
override fun isApplicableTest(): Boolean = isGradleInspectionTestApplicable()
@Test
fun testDifferentStdlibGradleVersion() {
val problems = getInspectionResultFromTestDataProject()
@@ -0,0 +1,8 @@
/*
* Copyright 2010-2019 JetBrains s.r.o. 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.idea.codeInsight.gradle
fun isGradleInspectionTestApplicable() = true
@@ -0,0 +1,8 @@
/*
* Copyright 2010-2019 JetBrains s.r.o. 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.idea.codeInsight.gradle
fun isGradleInspectionTestApplicable() = false
@@ -0,0 +1,8 @@
/*
* Copyright 2010-2019 JetBrains s.r.o. 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.idea.codeInsight.gradle
fun isGradleInspectionTestApplicable() = false
@@ -0,0 +1,8 @@
/*
* Copyright 2010-2019 JetBrains s.r.o. 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.idea.codeInsight.gradle
fun isGradleInspectionTestApplicable() = false