Mute tests with unexpected behaviour
This commit is contained in:
@@ -93,6 +93,8 @@ abstract class AbstractDiagnosticsTestSpec : AbstractDiagnosticsTest() {
|
||||
moduleBindings: Map<TestModule?, BindingContext>,
|
||||
languageVersionSettingsByModule: Map<TestModule?, LanguageVersionSettings>
|
||||
) {
|
||||
if (testValidator.testInfo.unexpectedBehavior!!) return
|
||||
|
||||
val diagnosticValidator = DiagnosticTestTypeValidator(testFiles)
|
||||
try {
|
||||
testValidator.validateTestType(computedTestType = diagnosticValidator.computeTestType())
|
||||
|
||||
@@ -24,6 +24,8 @@ abstract class AbstractParsingTestSpec : AbstractParsingTest() {
|
||||
|
||||
super.doParsingTest(filePath, testValidator::testInfoFilter)
|
||||
|
||||
if (testValidator.testInfo.unexpectedBehavior!!) return
|
||||
|
||||
try {
|
||||
testValidator.validateTestType(computedTestType = ParsingTestTypeValidator.computeTestType(myFile))
|
||||
} catch (e: SpecTestValidationException) {
|
||||
|
||||
Reference in New Issue
Block a user