jastrachan | 3 Jul 03:19 2004
Picon

Re: [groovy-dev] Running unit tests with the groovy command-line tool

On 29 Jun 2004, at 23:16, Guillaume Laforge wrote:
> Hi all,
>
> I added a new feature to GroovyShell (which is the class that is used 
> in the groovy command-line tool) to allow you to run unit tests from 
> the command-line directly, without having to use GroovyTestSuite's 
> trick and its -Dtest property.
> Now, to run a unit test extending GroovyTestCase, it is as simple as:
>
> groovy MyTestCase.groovy
>
> And you're done :-)
>
> Notice for those who worry, that it doesn't add a dependency to 
> junit.jar in GroovyShell, so that you don't depend on yet another 
> library when embedding groovy in your applications. The call to 
> JUnit's test runner is done through reflection, and will work only if 
> the jar is in your classpath.

Who-hoo! Nice work Guillaume! I love this!

James
-------
http://radio.weblogs.com/0112098/


Gmane