Skip to content

Commit 421f10d

Browse files
committed
test: MPS 2023.3 failed to start in test mode
1 parent 69316b3 commit 421f10d

File tree

2 files changed

+8
-0
lines changed
  • bulk-model-sync-lib-mps-test/src/test/kotlin/org/modelix/model/sync/bulk/lib/test
  • mps-model-adapters-plugin/src/test/kotlin/org/modelix/model/mpsadapters

2 files changed

+8
-0
lines changed

bulk-model-sync-lib-mps-test/src/test/kotlin/org/modelix/model/sync/bulk/lib/test/MPSTestBase.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ import java.util.regex.Pattern
2929
private val TESTDATA_PATTERN = Pattern.compile(".*\\(testdata (.*)\\)")
3030

3131
abstract class MPSTestBase : HeavyPlatformTestCase() {
32+
init {
33+
// workaround for MPS 2023.3 failing to start in test mode
34+
System.setProperty("intellij.platform.load.app.info.from.resources", "true")
35+
}
3236

3337
protected lateinit var projectDir: Path
3438

mps-model-adapters-plugin/src/test/kotlin/org/modelix/model/mpsadapters/MpsAdaptersTestBase.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ import kotlin.io.path.deleteRecursively
3939
*/
4040
@Suppress("removal")
4141
abstract class MpsAdaptersTestBase(val testDataName: String?) : UsefulTestCase() {
42+
init {
43+
// workaround for MPS 2023.3 failing to start in test mode
44+
System.setProperty("intellij.platform.load.app.info.from.resources", "true")
45+
}
4246

4347
protected lateinit var project: Project
4448

0 commit comments

Comments
 (0)