[ 
https://issues.apache.org/jira/browse/LUCENE-4463?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

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: https://issues.apache.org/jira/browse/LUCENE-4463
>             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: http://www.atlassian.com/software/jira

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

Reply via email to