Skip to content

Commit

Permalink
[JS TESTS] Emulate failing of non-run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
romanart committed May 26, 2020
1 parent 0862416 commit 2fd6921
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions js/js.tests/test/org/jetbrains/kotlin/js/test/BasicBoxTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,15 @@ abstract class BasicBoxTest(
if (runIrPir && !skipDceDriven) {
runGeneratedCode(pirAllJsFiles, testModuleName, testPackage, testFunction, expectedResult, withModuleSystem)
}
} else {
val ignored = InTextDirectivesUtils.isIgnoredTarget(
targetBackend, file,
InTextDirectivesUtils.IGNORE_BACKEND_DIRECTIVE_PREFIX
)

if (ignored) {
throw AssertionError("Ignored test hasn't been ran. Emulate its failing")
}
}

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

0 comments on commit 2fd6921

Please sign in to comment.