You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Dennis Lundberg <de...@apache.org> on 2007/06/23 23:09:10 UTC
Re: M2, Junit 4.1 - Test names
Please ask your questions on the user list.
andresalvati@buscape-inc.com wrote:
> Hi Dennis,
>
> I've been trying to run JUnit 4.1 with Maven 2.0.6, but unsucessfully.
>
> I've defined on my father's pom:
>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-surefire-plugin</artifactId>
> <version>2.3.1-SNAPSHOT</version>
> </plugin>
>
> <dependency>
> <groupId>TestePojos</groupId>
> <artifactId>junit</artifactId>
> <version>4.1</version>
> <scope>test</scope>
> </dependency>
> <dependency>
>
>
> How could you work it out? What are the correct plugins versions?
>
>
> Thanks.
>
>
>
> dennisl-2 wrote:
>> Lageson,Thomas M wrote:
>>> I have Maven 2 working with Junit 4.1 using the surefire 2.3-SNAPSHOT.
>>> The only thing that isn't working as expected is that the test classes
>>> need to have a name that ends in Test (e.g. MyAppTest.java). Having
>>> names like MyAppTest1.java or MyApp.java means that Maven can't seem to
>>> recognize that as a test class. Junit 4.1 doesn't have this requirement
>>> or expectation for the test name.
>>>
>>> Are other people seeing this behavior?
>>>
>>> - Tom
>> This is the default behavior of the surefire-plugin. Read more about
>> inclusion and exclusions here:
>>
>>
>> http://maven.apache.org/plugins/maven-surefire-plugin/examples/inclusion-exclusion.html
>>
>> --
>> Dennis Lundberg
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
> Quoted from:
> http://www.nabble.com/Dynamic-links-in-Maven2-site---how-to-provide-runtime-properties-to-site.xml-tf3059528s177.html#a8507982
>
--
Dennis Lundberg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org