Question

How can I use the Groovy Console to kick off junit tests?

(Currently using Groovy 1.6.0)

Was it helpful?

Solution

I currently use:

junit.textui.TestRunner.run(MyTest)

(Where my junit test class is MyTest)

I've tried running:

MyTest

within the Groovy Console, but that just returns the class instance. Is there an easier way?

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