[ 
https://issues.apache.org/jira/browse/LUCENE-4463?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13470694#comment-13470694
 ] 

Hoss Man commented on LUCENE-4463:
----------------------------------

Just to be clear...

bq. the -Dtests.iters is not really useful for this because it does not allow 
-Dtestmethod and it does not give a fresh jvm.

-Dtests.iters definitely works with -Dtestmethod.

from test-help...

{noformat}
     [echo] # Repeats a given test N times (note the filters - individual test
     [echo] # repetitions are given suffixes, ie: testFoo[0], testFoo[1], etc...
     [echo] # so using testmethod or tests.method ending in a glob is necessary
     [echo] # to ensure iterations are run).
     [echo] ant test -Dtests.iters=N -Dtestcase=ClassName -Dtestmethod=mytest
     [echo] ant test -Dtests.iters=N -Dtestcase=ClassName -Dtests.method=mytest*
     [echo] 
     [echo] # Repeats N times but skips any tests after the first failure or M
     [echo] # initial failures.
     [echo] ant test -Dtests.iters=N -Dtests.failfast=yes -Dtestcase=...
     [echo] ant test -Dtests.iters=N -Dtests.maxfailures=M -Dtestcase=...
{noformat}
                
> add support for running the same test method many times
> -------------------------------------------------------
>
>                 Key: LUCENE-4463
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4463
>             Project: Lucene - Core
>          Issue Type: Wish
>          Components: general/build
>            Reporter: Robert Muir
>
> I have a shell script for this, mike has a python script, its annoying :)
> I want to do something like this:
> ant beast -Dtestcase=XXXX -Dtestmethod=YYYY -Diterations=100
> I would be happy with a simple loop that just invokes 'test' somehow: getting 
> a fresh new JVM to each iteration is desirable anyway (so you get fresh 
> codecs, etc). 
> the -Dtests.iters is not really useful for this because it does not allow 
> -Dtestmethod and it does not give a fresh jvm.
> bonus points if it can use multiple jvms at the same time though :)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to