Kaynağa Gözat

Update mirai-console.integration-test

Karlatemp 4 yıl önce
ebeveyn
işleme
6f24035154

+ 3 - 2
mirai-console/backend/integration-test/build.gradle.kts

@@ -83,8 +83,9 @@ mcit_test.configure {
     }
 }
 
-rootProject.allprojects {
-    if (project.path.removePrefix(":").startsWith("mirai-console.integration-test.tp.")) {
+val crtProject = project
+subprojects {
+    if (project.parent == crtProject) {
         project.afterEvaluate {
             val tk = tasks.named<Jar>("jar")
             subplugins.add(tk)

+ 1 - 0
mirai-console/backend/integration-test/src/IntegrationTestBootstrap.kt

@@ -56,6 +56,7 @@ internal fun main() {
 
     ConsoleTerminalSettings.setupAnsi = false
     ConsoleTerminalSettings.noConsole = true
+    ConsoleTerminalSettings.launchOptions.crashWhenPluginLoadFailed = true
 
     val testUnits: List<AbstractTestPoint> = readStringListFromEnv("IT_POINTS").asSequence()
         .onEach { println("[MCIT] Loading test point: $it") }

+ 1 - 1
settings.gradle.kts

@@ -69,7 +69,7 @@ fun includeConsoleITPlugin(path: File) {
         initScript.writeText(consoleIntegrationTestSubPluginBuildGradleKtsTemplate)
     }
 
-    val projectPath = ":mirai-console.integration-test.tp.${path.name}"
+    val projectPath = ":mirai-console.integration-test:${path.name}"
     include(projectPath)
     project(projectPath).projectDir = path
 }