Refactor: extract test generation regexp into a common util object
This commit is contained in:
committed by
Space Team
parent
881997585a
commit
0295057520
@@ -6,6 +6,7 @@
|
||||
package org.jetbrains.kotlin.generators.tests
|
||||
|
||||
import org.jetbrains.kotlin.generators.generateTestGroupSuiteWithJUnit5
|
||||
import org.jetbrains.kotlin.generators.util.TestGeneratorUtil
|
||||
import org.jetbrains.kotlin.wasm.test.*
|
||||
import org.jetbrains.kotlin.wasm.test.diagnostics.AbstractDiagnosticsWasmTest
|
||||
import org.jetbrains.kotlin.wasm.test.diagnostics.AbstractDiagnosticsFirWasmTest
|
||||
@@ -25,16 +26,15 @@ fun main(args: Array<String>) {
|
||||
// Multimodal infra is not supported. Also, we don't use ES modules for cross-module refs in Wasm
|
||||
"crossModuleRef", "crossModuleRefPerFile", "crossModuleRefPerModule"
|
||||
)
|
||||
val excludedFirTestdataPattern = "^(.+)\\.fir\\.kts?\$"
|
||||
|
||||
generateTestGroupSuiteWithJUnit5(args) {
|
||||
testGroup("wasm/wasm.tests/tests-gen", "compiler/testData") {
|
||||
testClass<AbstractDiagnosticsWasmTest> {
|
||||
model("diagnostics/wasmTests", excludedPattern = excludedFirTestdataPattern)
|
||||
model("diagnostics/wasmTests", excludedPattern = TestGeneratorUtil.KT_OR_KTS_WITH_FIR_PREFIX)
|
||||
}
|
||||
|
||||
testClass<AbstractDiagnosticsFirWasmTest> {
|
||||
model("diagnostics/wasmTests", excludedPattern = excludedFirTestdataPattern)
|
||||
model("diagnostics/wasmTests", excludedPattern = TestGeneratorUtil.KT_OR_KTS_WITH_FIR_PREFIX)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user