diff --git a/idea/idea-frontend-independent/tests/org/jetbrains/kotlin/test/uitls/IgnoreTests.kt b/idea/idea-frontend-independent/tests/org/jetbrains/kotlin/test/uitls/IgnoreTests.kt index 8e37b2b02a08c..54908b64f083a 100644 --- a/idea/idea-frontend-independent/tests/org/jetbrains/kotlin/test/uitls/IgnoreTests.kt +++ b/idea/idea-frontend-independent/tests/org/jetbrains/kotlin/test/uitls/IgnoreTests.kt @@ -11,6 +11,7 @@ import java.nio.file.Path object IgnoreTests { private const val INSERT_DIRECTIVE_AUTOMATICALLY = false // TODO use environment variable instead + private const val ALWAYS_CONSIDER_TEST_AS_PASSING = false // TODO use environment variable instead fun runTestIfEnabledByFileDirective( testFile: Path, @@ -46,6 +47,11 @@ object IgnoreTests { additionalFilesExtensions: List, test: () -> Unit ) { + if (ALWAYS_CONSIDER_TEST_AS_PASSING) { + test() + return + } + val testIsEnabled = directive.isEnabledInFile(testFile) try {