测试{useJUnitPlatform()}和任务之间有什么区别吗?withType(Test){useJUnitPlatform()}

mf98qq94  于 2022-11-11  发布在  其他
关注(0)|答案(1)|浏览(86)

build.gradle中指定

test {
   useJUnitPlatform()
}

tasks.withType(Test) {
   useJUnitPlatform()
}

8ftvxx2r

8ftvxx2r1#

是的,正如您在文档中看到的,第一个是groovy(build.gradle),第二个是Kotlin(build.gradle.kts)。

相关问题