You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Jason Rutherglen <ja...@gmail.com> on 2009/06/17 01:20:40 UTC

Execute a testcase method via ant?

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

Re: Execute a testcase method via ant?

Posted by Jason Rutherglen <ja...@gmail.com>.
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@mikemccandless.com> wrote:

> I would love to have the -Dtestmethod=XXX!
>
> Mike
>
> On Tue, Jun 23, 2009 at 7:42 PM, Jason
> Rutherglen<ja...@gmail.com> 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 <se...@gmail.com> 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
> >> <ja...@gmail.com> wrote:
> >>>
> >>> Doesn't look like this is possible today, though could be handy?
> >>
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
>
>

Re: Execute a testcase method via ant?

Posted by Michael McCandless <lu...@mikemccandless.com>.
I would love to have the -Dtestmethod=XXX!

Mike

On Tue, Jun 23, 2009 at 7:42 PM, Jason
Rutherglen<ja...@gmail.com> 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 <se...@gmail.com> 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
>> <ja...@gmail.com> wrote:
>>>
>>> Doesn't look like this is possible today, though could be handy?
>>
>
>

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


Re: Execute a testcase method via ant?

Posted by Jason Rutherglen <ja...@gmail.com>.
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 <se...@gmail.com> 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@gmail.com> wrote:
>
>> Doesn't look like this is possible today, though could be handy?
>>
>
>

Re: Execute a testcase method via ant?

Posted by Shai Erera <se...@gmail.com>.
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@gmail.com> wrote:

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