In the docs for groovy.util.GroovyTestCase (http://groovy.codehaus.org/api/groovy/util/GroovyTestCase.html) the description says "A default JUnit TestCase in Groovy. This provides a number of helper methods plus avoids the JUnit restriction of requiring all test* methods to be void return type.
However, when I use groovy JUnit3 code like the following, JUnit finds no tests:
class MyTest extends GroovyTestCase {
def testSomething() {
assert 1 + 1 == 2
}
}
If I change the return type of testSomething() to void (as is normal in JUnit) the test is found just fine.
Do I need to write the test differently or is the doc wrong?