Hello Rohnny,
Thank you for your answer !
I'm using JUnit 4.4 and Surefire 2.3.
The -X does give me more information but unfortunately not about the
selenium tests.
If I comment out the selenium plugin I don't have any problems as the
issue is that selenium tests aren't run.
I've tried to upgrade to surefire 2.4.2 but I get errors - maybe I
should first fix this.
I looked carefully at your pom, it is indeed very close to mine.
I should perhaps also try to use testng but I'm not convinced as unit
tests are not a problem for me.
Thank you for your help,
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