说我有src / test / groovy / MyTest.groovy:
class MyTest extends GroovyTestCase {
void testDummy() {
println 'DUMMY'
}
}
我的build.gradle没有什么特别之处:
usePlugin 'groovy'
repositories {
mavenCentral()
}
dependencies {
groovy group: 'org.codehaus.groovy', name: 'groovy', version: '1.7.5'
testCompile group: 'junit', name: 'junit', version: '4.7'
}
当我在命令行中运行gradle test
时,为什么不在标准输出上打印 DUMMY ?我错过了什么吗?
~$ gradle test
:compileJava
:compileGroovy
:processResources
:classes
:compileTestJava
:compileTestGroovy
:processTestResources
:testClasses
:test
BUILD SUCCESSFUL
Total time: 5.372 secs
答案 0 :(得分:0)
查看build / reports / test-result