[
http://jira.codehaus.org/browse/SUREFIRE-319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_119307
]
Jan Palmquist commented on SUREFIRE-319:
----------------------------------------
Corresponding behavior is true for configuration
<testFailureIgnore>false</testFailureIgnore> and
-Dmaven.test.failure.ignore=true
Thanks for the workaround!
It seems like that the following also works:
<properties>
<maven.test.skip>true</maven.test.skip>
<maven.test.failure.ignore>true</maven.test.failure.ignore>
</properties>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>${maven.test.skip}</skip>
<testFailureIgnore>${maven.test.failure.ignore}</testFailureIgnore>
</configuration>
</plugin>
Hence, you can specify a different default value for you test behaviour and
also override the values using the command line...
> <skip>true</skip> cannot be overridden using mvn -Dmaven.test.skip=false test
> -----------------------------------------------------------------------------
>
> Key: SUREFIRE-319
> URL: http://jira.codehaus.org/browse/SUREFIRE-319
> Project: Maven Surefire
> Issue Type: Bug
> Environment: java version "1.5.0_09"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b01)
> Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_09-b01, mixed mode)
> Reporter: Graham Leggett
> Fix For: 2.x
>
>
> If the pom file is configured to skip tests using <skip>true</skip>, and an
> attempt is made to override this on the command line using mvn
> -Dmaven.test.skip=false test, the attempt does not work (the test is still
> skipped).
> In theory, the command line flag should override the pom setting.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira