You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Lageson,Thomas M" <TL...@travelers.com> on 2007/01/22 20:14:43 UTC

M2, Junit 4.1 - Test names

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 communication, together with any attachments hereto or links contained herein, is for the sole use of the intended recipient(s) and may contain information that is confidential or legally protected. If you are not the intended recipient, you are hereby notified that any review, disclosure, copying, dissemination, distribution or use of this communication is STRICTLY PROHIBITED.  If you have received this communication in error, please notify the sender immediately by return e-mail message and delete the original and all copies of the communication, along with any attachments hereto or links herein, from your system.

==============================================================================
The St. Paul Travelers e-mail system made this annotation on 01/22/07, 14:14:45.



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


Re: M2, Junit 4.1 - Test names

Posted by Dennis Lundberg <de...@apache.org>.
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