With maven2, when you run 'mvn site', the selenium tests are not run. Oddly enough, if I put the maven-clover plugin into the pom.xml, then the selenium tests run, but then clover messes up the environment so that Mavenium throws this error:
[INFO] Results test file could not be found! (I looked for it at /workspace/myProject/target/clover/Result.html
You'll notice the /clover in the directory name. Somehow Clover is polluting the environment. But I would still like to know why the selenium tests don't run when you run 'mvn site' while they run fine when you run 'mvn verify'.
here is my mavenium plugin info:
<plugin>
<groupId>com.agilepirates</groupId> <artifactId>mavenium</artifactId> <version>0.2</version>
<configuration> <server.name>shawn.mycomputer.com</server.name> <server.port>8090</server.port> <server.timeout>200</server.timeout> <selenium.tests.results.file>${basedir}/target/Result.html</selenium.tests.results.file>
<selenium-server.jarfile>${basedir}/target/selenium-server.jar</selenium-server.jarfile> </configuration>
<executions>
<execution>
<goals>
<goal>launch-selenium</goal>
<goal>validate-selenium-tests</goal>
</goals>
</execution>
</executions></plugin>
Contact me at shawn.bernard@turner.com please if you know how to solve this.