【发布时间】:2022-01-22 19:43:07
【问题描述】:
我想在我的项目中默认启用 junit 扩展 autoDetection 如果我了解我应该在启动构建时使用 -Djunit.jupiter.extensions.autodetection.enabled=true。
但我想在命令行和我的所有子模块中默认启用而不需要额外参数。
我喜欢这样的东西应该不错:
allprojects {
test {
//put an option here
useJUnitPlatform()
}
}
但我不知道在我的 build.gradle 中放置哪个选项。
【问题讨论】: