【发布时间】:2022-10-18 22:38:36
【问题描述】:
测试没有并行运行,“未使用的属性”写在属性文件中,可能是什么问题?聚甲醛:
https://gist.github.com/vindus940/60b1a6440d3be9f25ff2b00f0e74dcea
文件结构:
【问题讨论】:
测试没有并行运行,“未使用的属性”写在属性文件中,可能是什么问题?聚甲醛:
https://gist.github.com/vindus940/60b1a6440d3be9f25ff2b00f0e74dcea
文件结构:
【问题讨论】:
我遇到了与您完全相同的问题,包括 Intellij 将 junit-platform.properties 中的属性报告为未使用。
将 JUnit 属性添加到我的 build.gradle 最终成为我的解决方案。
test {
useJUnitPlatform {
includeEngines 'junit-jupiter', 'junit-vintage'
systemProperty 'junit.jupiter.execution.parallel.enabled', 'true'
systemProperty 'junit.jupiter.execution.parallel.config.strategy', 'dynamic'
systemProperty 'junit.jupiter.execution.parallel.mode.default', 'concurrent'
systemProperty 'junit.jupiter.execution.parallel.mode.classes.default', 'concurrent'
}
}
我正在使用以下
【讨论】: