Skip to content

Commit 2fd6921

Browse files
committed
[JS TESTS] Emulate failing of non-run tests
1 parent 0862416 commit 2fd6921

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

js/js.tests/test/org/jetbrains/kotlin/js/test/BasicBoxTest.kt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,15 @@ abstract class BasicBoxTest(
254254
if (runIrPir && !skipDceDriven) {
255255
runGeneratedCode(pirAllJsFiles, testModuleName, testPackage, testFunction, expectedResult, withModuleSystem)
256256
}
257+
} else {
258+
val ignored = InTextDirectivesUtils.isIgnoredTarget(
259+
targetBackend, file,
260+
InTextDirectivesUtils.IGNORE_BACKEND_DIRECTIVE_PREFIX
261+
)
262+
263+
if (ignored) {
264+
throw AssertionError("Ignored test hasn't been ran. Emulate its failing")
265+
}
257266
}
258267

259268
performAdditionalChecks(generatedJsFiles.map { it.first }, outputPrefixFile, outputPostfixFile)

0 commit comments

Comments
 (0)