lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <>
Subject [jira] [Commented] (LUCENE-4463) add support for running the same test method many times
Date Fri, 05 Oct 2012 21:28:04 GMT


Robert Muir commented on LUCENE-4463:

Here is my current script, just so you see:

> /home/rmuir/log.txt
while [ $x -lt 1000 ]
  echo "test iteration number $x"
  ant test -Dtestcase=TestFoo -Dtests.method=testBar >> /home/rmuir/log.txt 2>&1

  x=$(( $x + 1 ))

I edit this every time i need to use it and then just use 'grep -i failed log.txt' to look
for failures.
one problem is it fires up ant, calls resolve,compile,compile-tests all this stuff each time.
this makes it really slow.
so if it could work from ant directly i think it would be much more efficient.
> add support for running the same test method many times
> -------------------------------------------------------
>                 Key: LUCENE-4463
>                 URL:
>             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:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message