lucene-dev mailing list archives

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


Uwe Schindler updated LUCENE-4463:

    Attachment: LUCENE-4463.patch

Here is a trivial patch doing this (it uses a for-loop of <antcall/>). The reason why
doing this is:
- The naive approach is to simple use project.executeTarget(), but on the second run of the
same target, junit4 complains about properties set from the previous run.
- This approach unfortunately runs all dependencies over and over, as <antcall/> internally
creates a "sub-project", inherits all properties currently set and then executes the target
in this isolated environment. No way around that :(
- This patch works everywhere where you can call "ant test" (except top-level as it does not
import common-build.xml.

> 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
>         Attachments: LUCENE-4463.patch
> 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