Update mirai-console.integration-test

This commit is contained in:
Karlatemp 2022-01-15 19:17:04 +08:00
parent 747bc05591
commit 6f24035154
No known key found for this signature in database
GPG Key ID: 21FBDDF664FF06F8
3 changed files with 5 additions and 3 deletions

View File

@ -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)

View File

@ -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") }

View File

@ -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
}