Mute tests with unexpected behaviour

This commit is contained in:
victor.petukhov
2018-10-04 15:00:25 +03:00
parent e90cf4b955
commit f61980732b
2 changed files with 4 additions and 0 deletions
@@ -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) {