Two options:
1. Name your files differently. ThisIsNotATestFile.java falls out of the regexp.
2. Use excludes:
http://maven.apache.org/plugins/maven-surefire-plugin/examples/inclusion-exclusion.html

Wayne

On 6/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hi *,

I'm new to maven 2 and the surefire plugin and I am irritated about
the inclusions of tests. The doc says:

By default, the surefire plugin will automatically include all test classes 
with the following wildcard patterns:
"**/Test*.java" - includes all of its subdirectory and all java filenames that start with 
"Test".
"**/*Test.java" - includes all of its subdirectory and all java filenames that end with 
"Test".
"**/*TestCase.java" - includes all of its subdirectory and all java filenames that end 
with "TestCase".


Why is the superclass of a test not considered for this?  It seems that
a class named MyTest that extends java.lang.Object is executed when
running surefire:test, which does not make any sense.

Regards,
--
Martin


Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kanns mit allen: http://www.gmx.net/de/go/multimessenger

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to