Hi,

Just to tell you that my problem has been solved buy putting this in the maven-surefire-plugin :

I've added this part :

                                   <excludes>
                                       <exclude>none</exclude>
                                   </excludes>

So for in the profile for selenium tests the plugin looks like this now :

                   <plugin>
                       <groupId>org.apache.maven.plugins</groupId>
                       <artifactId>maven-surefire-plugin</artifactId>
                       <configuration>
                           <skip>true</skip>
                           <excludes>
                               <exclude>**/itest/**/*.java</exclude>
                           </excludes>
                       </configuration>
                       <executions>
                           <execution>
                               <id>integration-tests</id>
                               <phase>integration-test</phase>
                               <goals>
                                   <goal>test</goal>
                               </goals>
                               <configuration>
                                   <skip>false</skip>
                                   <excludes>
                                       <exclude>none</exclude>
                                   </excludes>
                                   <includes>
<include>**/itest/**/*.java</include>
                                   </includes>
                               </configuration>
                           </execution>
                       </executions>
                   </plugin>

Marc.

Rohnny Moland a écrit :
Its nothing wrong with the part of the plugin in this mail, at least.
Maybe you could try to run mvn with the -X option to see whats going
on? Are you using junit or testng? And what version of the surefire
plugin are you using? I tried your plugin part of the pom with
surefire 2.4.2, testng 5.7 and it is working fine. Does it work if you
comment out the selenium plugin?

On Thu, Apr 3, 2008 at 5:08 PM, Marc SCHNEIDER
<[EMAIL PROTECTED]> wrote:
 Hello,

 May be this is a stupid question but I've been searching for many hours and
wonder why the tests can't be run.
 I have the message : There are no tests to run.

 I'm running mvn -P itest clean install (the plugins are defined within this
profile)

 The test classes are under src/test/java/.../itest
 They have of course the @Test annotation.

 Here the configuration of the plugins in my pom.xml :

                     <plugin>
                         <groupId>org.apache.maven
.plugins</groupId>
                         <artifactId>maven-surefire
-plugin</artifactId>
                         <configuration>
                             <skip>true</skip>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>unit-tests</id>
                                 <goals>
                                     <goal>test</goal>
                                 </goals>
                                 <configuration>
                                     <excludes>

<exclude>**/itest/**/*.java</exclude>
                                         <exclude>**/Test*.java</exclude>
                                     </excludes>
                                     <skip>false</skip>
                                 </configuration>
                             </execution>
                             <execution>
                                 <id>integration-tests</id>
                                 <phase>integration-test</phase>
                                 <goals>
                                     <goal>test</goal>
                                 </goals>
                                 <configuration>
                                     <includes>

<include>**/itest/**/*.java</include>
                                     </includes>
                                     <skip>false</skip>
                                 </configuration>
                             </execution>
                         </executions>
                     </plugin>

                     <plugin>
                         <groupId>org.codehaus.mojo</groupId>
                         <artifactId>selenium-maven-plugin</artifactId>
                         <executions>
                             <execution>
                                 <id>start-selenium</id>
                                 <phase>pre-integration-test</phase>
                                 <goals>
                                     <goal>start-server</goal>
                                 </goals>
                                 <configuration>
                                     <background>true</background>
                                 </configuration>
                             </execution>
                         </executions>
                     </plugin>

 Any ideas ?
 Thanks,
 Marc.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email





---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to