I am working on a small webapp and I want to use Groovy to write unit testing for my application. Most of my coding is done on Eclipse, and I really want to run all the unit tests with the graphical test runner in Eclipse (I really like the green bar :))
Unfortunately, after 4 hours of trial error, I still cannot configure correctly. I tried using the Eclipse Junit4 test runner to run a Groovy file with a method annotated for testing using @Test. But he keeps complaining about a NoClassDefFoundException
Can anybody help?
Here is the contents of my Groovy file called simpleTest.groovy
import org.junit.Test import static org.junit.Assert.assertEquals class simpleTest{ @Test void trial(){ assertEquals 6, 3+3 } }
Anyone can help?
eclipse junit groovy
Ferdinand chan
source share