Skip to content

Commit

Permalink
test: 调整JVMConfig的test相关配置
Browse files Browse the repository at this point in the history
  • Loading branch information
ForteScarlet committed Feb 5, 2024
1 parent b52dd18 commit b83ab3c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions buildSrc/src/main/kotlin/JvmConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Project https://github.com/simple-robot/simpler-robot
* Email [email protected]
*
* 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
Expand Down Expand Up @@ -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()
}
Expand Down

0 comments on commit b83ab3c

Please sign in to comment.