Execute a testcase method via ant?

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

Execute a testcase method via ant?

by Jason Rutherglen-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Doesn't look like this is possible today, though could be handy? 

Re: Execute a testcase method via ant?

by Shai Erera :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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? 


Re: Execute a testcase method via ant?

by Jason Rutherglen-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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? 



Re: Execute a testcase method via ant?

by Michael McCandless-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I would love to have the -Dtestmethod=XXX!

Mike

On Tue, Jun 23, 2009 at 7:42 PM, Jason
Rutherglen<jason.rutherglen@...> wrote:

> 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?
>>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@...
For additional commands, e-mail: java-dev-help@...


Re: Execute a testcase method via ant?

by Jason Rutherglen-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'll make an issue for testing by method, it should be easier to implement than multithreading JUnit (which seems to require core ANT/JUnit work).  

On Mon, Jul 6, 2009 at 12:26 PM, Michael McCandless <lucene@...> wrote:
I would love to have the -Dtestmethod=XXX!

Mike

On Tue, Jun 23, 2009 at 7:42 PM, Jason
Rutherglen<jason.rutherglen@...> wrote:
> 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?
>>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@...
For additional commands, e-mail: java-dev-help@...