GroovyTestCase IJ integration?
In IJ X, if I extend GroovyTestCase and just write some methods with assertions, IJ doesn't detect them to be run in the test runner. And I can't run the Class as a test as it says "No tests found". I have to use the JUnit @Test annotation to get it to work. Is this expected behavior?
See http://groovy.codehaus.org/Unit+Testing
here is a code example:
importgroovy.util.GroovyTestCase class MyTest extends GroovyTestCase { void testSomething() { assert 1 == 1 assert 2 + 2 == 4 : "We're in trouble, arithmetic is broken" } }
请先登录再写评论。