Running tests

View: New views
3 Messages — Rating Filter:   Alert me  

Running tests

by Russel Winder-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Does Gradle have a built-in ability to run a single test class rather
than all the tests?

For the Groovy build and the Gant Gant build you can set -DtestCase=...
and only that test case is run when running the test target.  This is
hugely useful for debugging even for small projects.

Thanks.

--
Russel.
=============================================================================
Dr Russel Winder      Partner
                                            xmpp: russel@...
Concertant LLP        t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road,   f: +44 8700 516 084   voip: sip:russel.winder@...
London SW11 1EN, UK   m: +44 7770 465 077   skype: russel_winder


signature.asc (204 bytes) Download Attachment

Re: Running tests

by Tomek Kaczanowski-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/10/16 Russel Winder <russel.winder@...>:
> Does Gradle have a built-in ability to run a single test class rather
> than all the tests?
AFAIK - no
see: http://docs.codehaus.org/display/GRADLE/Cookbook#Cookbook-runningsingletests

but I'd be happy to learn that it is possible

--
Tomek

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: Running tests

by Adam Murdoch-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



Russel Winder wrote:
> Does Gradle have a built-in ability to run a single test class rather
> than all the tests?
>
>  

Not yet.

> For the Groovy build and the Gant Gant build you can set -DtestCase=...
> and only that test case is run when running the test target.  This is
> hugely useful for debugging even for small projects.
>
>  

Have a look at
http://docs.codehaus.org/display/GRADLE/Cookbook#Cookbook-runningsingletests

--
Adam Murdoch
Gradle Developer
http://www.gradle.org


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email