[JS TESTS] Emulate failing of non-run tests

This commit is contained in:
Roman Artemev
2020-05-26 16:15:06 +03:00
committed by romanart
parent 086241659e
commit 2fd6921806
@@ -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)