[Spec tests] Change metadata structure of implementation and spec tests

This commit is contained in:
anastasiia.spaseeva
2020-04-01 19:14:46 +03:00
parent 80cd26c9df
commit d32aca87d1
925 changed files with 2330 additions and 1657 deletions
@@ -101,7 +101,7 @@ abstract class BaseDiagnosticsTest : KotlinMultiFileTestWithJava<TestModule, Tes
analyzeAndCheck(wholeFile, files)
}
protected open fun shouldSkipTest(wholeFile: File, files: List<TestFile>) : Boolean = false
protected open fun shouldSkipTest(wholeFile: File, files: List<TestFile>): Boolean = false
protected abstract fun analyzeAndCheck(testDataFile: File, files: List<TestFile>)
@@ -412,7 +412,8 @@ abstract class BaseDiagnosticsTest : KotlinMultiFileTestWithJava<TestModule, Tes
val RENDER_DIAGNOSTICS_FULL_TEXT = "RENDER_DIAGNOSTICS_FULL_TEXT"
val DIAGNOSTIC_IN_TESTDATA_PATTERN = Regex("<!>|<!(.*?(\\(\".*?\"\\)|\\(\\))??)+(?<!<)!>")
val SPEC_LINKS_IN_TESTDATA_PATTERN = Regex("""/\*\s+\*\s+RELEVANT SPEC SENTENCES[\w\W]*?\*/\n""")
val SPEC_LINKS_IN_TESTDATA_PATTERN =
Regex("""\/\*\s+? \* KOTLIN (PSI|DIAGNOSTICS|CODEGEN BOX) SPEC TEST \((POSITIVE|NEGATIVE)\)\n([\s\S]*?\n)\s+\*\/\n""")
fun parseDiagnosticFilterDirective(
directiveMap: Directives,