Java テストの JUnit5 エンジンは JUnit3/JUnit4 も実行できる ― 2025年03月07日 12時44分52秒
Testing in Java & JVM projects にて Gradle の設定の仕方が紹介されている。
tasks.named('test', Test) {
useJUnitPlatform()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter:5.7.1'
testCompileOnly 'junit:junit:4.13'
testRuntimeOnly 'org.junit.vintage:junit-vintage-engine'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
最近のコメント