Remove IGNORE_BACKEND_WITHOUT_CHECK and introduce DONT_RUN_GENERATED_CODE
Support DONT_RUN_GENERATED_CODE in JS Box tests. IGNORE_BACKEND_WITHOUT_CHECK is removed because of it's often wrongly used and in most cases can be replaced with IGNORE_BACKEND or DONT_RUN_GENERATED_CODE or with combination of them.
This commit is contained in:
+1
-3
@@ -19,7 +19,6 @@ import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import static org.jetbrains.kotlin.test.InTextDirectivesUtils.isIgnoredTarget;
|
||||
import static org.jetbrains.kotlin.test.InTextDirectivesUtils.isIgnoredTargetWithoutCheck;
|
||||
|
||||
public class SimpleTestMethodModel implements TestMethodModel {
|
||||
|
||||
@@ -96,8 +95,7 @@ public class SimpleTestMethodModel implements TestMethodModel {
|
||||
unescapedName = relativePath + "-" + StringsKt.capitalize(extractedName);
|
||||
}
|
||||
|
||||
boolean ignored = isIgnoredTargetWithoutCheck(targetBackend, file) ||
|
||||
skipIgnored && isIgnoredTarget(targetBackend, file);
|
||||
boolean ignored = skipIgnored && isIgnoredTarget(targetBackend, file);
|
||||
return (ignored ? "ignore" : "test") + StringsKt.capitalize(TestGeneratorUtil.escapeForJavaIdentifier(unescapedName));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user