I think you're correct about *Test.class being run by default. I am not sure if it is documented but I haven't seen any document about this. Try putting this to your POM.xml. There might be a better way but this one works for me. You can change the value of "**/*.java" to the pattern you prefer.
   <build>
   ....

   <plugins>
       <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-surefire-plugin</artifactId>
           <executions>
               <execution>
               <id>Surefire_Plugin</id>
               <configuration>
                   <includes>
<include implementation="java.lang.String">**/*.java</include>
                   </includes>
               </configuration>
               </execution>
           </executions>
       </plugin>
     </plugins>
   ....
   <build>

--  Johnny


Chris Wall wrote:

It appears that Maven executes *Test.class classes.  Is this documented?

Thanks.

-----Original Message-----
From: Chris Wall Sent: August 10, 2005 7:30 PM
To: users@maven.apache.org
Subject: [m2] How does m2 recognize junit tests to be executed?

Hey.

My compiled junit tests are not being executed.  How does Maven 2
determine which tests to execute?  I'm using the default
testSourceDirectory and testOutputDirectory settings  ClassA contains a
method called testGetByLastName() has the following class hierarchy:

ClassA -> CustomBaseTest ->
AbstractDependencyInjectionSpringContextTests ->
AbstractSpringContextTests -> TestCase

Thanks.

-Chris

---------------------------------------------------------------------
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