Skip to content

Commit d633033

Browse files
committed
FIR IDE: introduce param for enabling disabled tests
1 parent a671054 commit d633033

File tree

1 file changed

+6
-0
lines changed
  • idea/idea-frontend-independent/tests/org/jetbrains/kotlin/test/uitls

1 file changed

+6
-0
lines changed

idea/idea-frontend-independent/tests/org/jetbrains/kotlin/test/uitls/IgnoreTests.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import java.nio.file.Path
1111

1212
object IgnoreTests {
1313
private const val INSERT_DIRECTIVE_AUTOMATICALLY = false // TODO use environment variable instead
14+
private const val ALWAYS_CONSIDER_TEST_AS_PASSING = false // TODO use environment variable instead
1415

1516
fun runTestIfEnabledByFileDirective(
1617
testFile: Path,
@@ -46,6 +47,11 @@ object IgnoreTests {
4647
additionalFilesExtensions: List<String>,
4748
test: () -> Unit
4849
) {
50+
if (ALWAYS_CONSIDER_TEST_AS_PASSING) {
51+
test()
52+
return
53+
}
54+
4955
val testIsEnabled = directive.isEnabledInFile(testFile)
5056

5157
try {

0 commit comments

Comments
 (0)