Strange, it looks like you've done what's described here:
http://docs.codehaus.org/pages/viewpage.action?pageId=62120

Could it be that a bug has been introduce i newer surefire-plugin versions?
Try some different versions to see if that makes any difference!

/Anders

On Thu, Aug 6, 2009 at 10:59, Shaddow89 <toph1...@gmx.de> wrote:

>
> I have been searching for solutions about that problem for quite a long
> time
> by now, but unfortunately I didn't manage to solve my problem. Within my
> POM
> i want to skip any tests during the test-phase BUT i want to do tests
> during
> the integration-test-phase.
>
> Therefore I want to start a selenium server in the pre-integration-test
> phase, run the tests in the integration-test-phase and stop the server in
> the post-integration-test phase.
>
> My POM plugins to achieve this are as follows:
>                <plugins>
>                        <plugin>
>                                <groupId>org.codehaus.mojo</groupId>
>
>  <artifactId>selenium-maven-plugin</artifactId>
>                                <configuration>
>                                        <firefoxProfileTemplate>C:\Documents
> and
> Settings\Administrator\Application
> Data\Mozilla\Firefox\Profiles\89d7dqtr.selenium</firefoxProfileTemplate>
>
>  <trustAllSSLCertificates>true</trustAllSSLCertificates>
>                                        <!-- <multiWindow>true</multiWindow>
>  -->
>                                        <port>4444</port>
>                                        <timeout>300</timeout>
>
>                                </configuration>
>
>                                <executions>
>                                        <execution>
>                                                <id>start</id>
>
>  <phase>pre-integration-test</phase>
>                                                <goals>
>
>  <goal>start-server</goal>
>                                                </goals>
>                                                <configuration>
>
>  <background>true</background>
>                                                </configuration>
>                                        </execution>
>                                        <execution>
>                                                <id>stop</id>
>
>  <phase>post-integration-test</phase>
>                                                <goals>
>
>  <goal>stop-server</goal>
>                                                </goals>
>                                                <configuration>
>
>  <background>true</background>
>                                                </configuration>
>                                        </execution>
>                                </executions>
>                        </plugin>
>
>
>                        <plugin>
>                                <groupId>org.apache.maven.plugins</groupId>
>
>  <artifactId>maven-surefire-plugin</artifactId>
>                                <configuration>
>                                        <!--
>                                                Skip the normal tests, we'll
> run them in the integration-test
>                                                phase
>                                        -->
>                                        <skip>true</skip>
>                                </configuration>
>                                <executions>
>                                        <execution>
>
>  <phase>integration-test</phase>
>                                                <goals>
>                                                        <goal>test</goal>
>                                                </goals>
>                                                <configuration>
>                                                        <skip>false</skip>
>
>                                                </configuration>
>                                        </execution>
>                                </executions>
>                        </plugin>
>                </plugins>
> de]
>
> There are other plugins as well and the whole built works as long as i dont
> try to do any tests by escaping the <skip>false</skip> in the
> integration-test-execution of surefire. If I escape that line, the built
> works but - of couse - no tests are run. Once I use this statement not only
> the implementation tests are run, but also the normal tests which actually
> should have been left out. As in advance of these normal tests no selenium
> server has been started, the built fails.
>
> I don't have any idea, why this doesn't work.. do you?
> --
> View this message in context:
> http://www.nabble.com/Surefire-skipping-tests-tp24841042p24841042.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

Reply via email to