Question

Say I have src/test/groovy/MyTest.groovy:

class MyTest extends GroovyTestCase {
  void testDummy() {
    println 'DUMMY'
  }
}

And there is nothing special with my 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'
}

Why don't I get DUMMY printed at the standard output when I run gradle test in the command line? Am I missing something?

~$ gradle test
:compileJava
:compileGroovy
:processResources
:classes
:compileTestJava
:compileTestGroovy
:processTestResources
:testClasses
:test

BUILD SUCCESSFUL

Total time: 5.372 secs
Was it helpful?

Solution

take a look in build/reports/test-result

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top