« Return to Thread: Execute a testcase method via ant?

Re: Execute a testcase method via ant?

by Jason Rutherglen-2 :: Rate this Message:

Reply to Author | View in Thread

More like ant test -Dtestcase=TestSort -Dtestmethod=testMultiSort

or

ant test -Dtestcase=TestSort.testMultiSort

I Googled a lot for "ant junit test method" and variants.  Couldn't find anything, seems like a custom JUnit task that does reflection could be used?

On Tue, Jun 16, 2009 at 7:22 PM, Shai Erera <serera@...> wrote:
You can "ant test -Dtestcase=TestSort", TestSort is an example.
You can also "ant test -Dtestpackage=search" - execute all *.search.* tests.
"ant test -Dtestpackageroot=search" would search *.search tests.

Is that what you were looking for?


On Wed, Jun 17, 2009 at 2:20 AM, Jason Rutherglen <jason.rutherglen@...> wrote:
Doesn't look like this is possible today, though could be handy? 


 « Return to Thread: Execute a testcase method via ant?