note the feature -Dtest=MyTest#myMethod is not supported with 3.8

2012/9/28 Steinar Bang <s...@dod.no>:
>>>>>> Tim Pizey <tim.pi...@gmail.com>:
>
>> Not everyone uses annotations, the surefire plugin requires the JUnit
>> 3.8.1 naming conventions,
>
> That doesn't seem to be the case:
>  http://maven.apache.org/plugins/maven-surefire-plugin/examples/junit.html
>
> Quote:
>   "Surefire supports three different generations of JUnit: JUnit 3.8.x,
>    JUnit 4.x (serial provider) and JUnit 4.7 (junit-core provider with
>    parallel support)."
>
>> the Jenkins plugins assume the same conventions.
>
> Hm... I haven't yet tried Jenkins, but I would surprised if Jenkins does
> anything outside of what maven would do, for a maven build...?
>
>> We have been bitten by People using JUnit4 and TestNG and hence
>> skipping tests in Jenkins.
>
> I found this on Stack Overflow, someone who had surefire not picking up
> tests marked with annotations:
>  
> http://stackoverflow.com/questions/2021771/surefire-is-not-picking-up-junit-4-tests
>
> It seems that in this case, this was a case of TestNG requiring JUnit
> 3.8.1 and shadowing a later dependance of JUnit 4.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>



-- 
Olivier Lamy
Talend: http://coders.talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to