From b83ab3c09bc37b0a0b2e0dc9bb69e760b7640ee7 Mon Sep 17 00:00:00 2001 From: ForteScarlet Date: Tue, 6 Feb 2024 06:08:48 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E8=B0=83=E6=95=B4JVMConfig=E7=9A=84tes?= =?UTF-8?q?t=E7=9B=B8=E5=85=B3=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- buildSrc/src/main/kotlin/JvmConfig.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/buildSrc/src/main/kotlin/JvmConfig.kt b/buildSrc/src/main/kotlin/JvmConfig.kt index 7e5ec2076..a7acb49e2 100644 --- a/buildSrc/src/main/kotlin/JvmConfig.kt +++ b/buildSrc/src/main/kotlin/JvmConfig.kt @@ -4,7 +4,7 @@ * Project https://github.com/simple-robot/simpler-robot * Email ForteScarlet@163.com * - * This file is part of the Simple Robot Library. + * This file is part of the Simple Robot Library (Alias: simple-robot, simbot, etc.). * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by @@ -46,7 +46,10 @@ inline fun KotlinJvmTarget.configJava(crossinline block: KotlinJvmTarget.() -> U } testRuns["test"].executionTask.configure { - useJUnitPlatform() + useJUnitPlatform { + val dir = project.rootProject.layout.buildDirectory.dir("test-reports/html/${project.name}") + reports.html.outputLocation.set(dir) + } } block() }