lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steven Rowe (JIRA)" <>
Subject [jira] [Created] (LUCENE-4045) Switch Maven test runner from maven-surefire-plugin to com.carrotsearch.randomizedtesting:junit4-maven-plugin
Date Wed, 09 May 2012 18:31:48 GMT
Steven Rowe created LUCENE-4045:

             Summary: Switch Maven test runner from maven-surefire-plugin to com.carrotsearch.randomizedtesting:junit4-maven-plugin
                 Key: LUCENE-4045
             Project: Lucene - Java
          Issue Type: Improvement
          Components: general/test
    Affects Versions: 4.0
            Reporter: Steven Rowe
            Priority: Minor

{{com.carrotsearch.randomizedtesting:junit4-maven-plugin}} can be used to run all Lucene/Solr
tests under Maven, providing faster execution through load balancing, along with all the other
goodies CS.RT brings.  (Not to mention it would make testing under Maven much more like testing
under Ant.)

>From [a post Dawid Weiss made on the maven-dev mailing list in January|]:
Load balancing is just part of what the project is about [...]

Maven integration can be seen as an integration test (with scarce documentation yet) here:

I've used it in another project, so a cleaner example of use from within a POM is here (you
should disable surefire or your tests will run twice):

And from [a post Dawid made to the lucene-dev mailing list in April|]:

I didn't mention it but there is actually an equivalent of <junit4> task as a maven
plugin... it basically redirects to the ant-plugin but has a maven-like facade for passing
the basic set of properties. I don't think it makes such a big difference for maven build
- we can stick to surefire. Let me know if you'd like to try that other plugin though -- an
example of a maven pom using it is here:

The CS.RT maven plugin requires Maven v3.0.2+; I asked Dawid whether Maven 2.2.1 could be
supported, and in private emails to me, he replied:
I looked at it but it seems I need to stick to Maven 3 -- there are APIs for filtering artefacts
that seem to be available in 3.x only (copied and pasted from surefire and maven core). If
you want to dig the code is on github, I won't have the time to look into it in the near future
(first short vacation, then a backlog of crap to deal with).
I admit I don't have enough Maven powers to actually think of a way to use either surefire
or another plugin (depending on a sysproperty or something). This could be a fallback for
folks who really need maven 2.x.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


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

View raw message