Running mvn install -Dtest fails -------------------------------- Key: SUREFIRE-431 URL: http://jira.codehaus.org/browse/SUREFIRE-431 Project: Maven Surefire Issue Type: Improvement Affects Versions: 2.4 Environment: Maven 2.0.8 on Windows XP with Surefire plugin 2.4 Reporter: Marco Beelen Priority: Minor
When I run "mvn install -Dtest" I explicitly tell maven not run any test. Since my machine got the 2.4 version of the surefire plugin, thist results in: ------------------------------------------------------- T E S T S ------------------------------------------------------- There are no tests to run. Results : Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] No tests were executed! (Set -DfailIfNoTests=false to ignore this error.) [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 17 seconds [INFO] Finished at: Wed Jan 16 14:17:09 CET 2008 [INFO] Final Memory: 13M/26M [INFO] ------------------------------------------------------------------------ Of course I can add the -DfailIfNoTests=false, but it would be much more easy if the -Dmaven.test.skip=true would set the -DfailIfNoTests=false option as well. If I'm smart or stupid enough to force to skip the execution of the test, I don't really want to be warned about that in the way of a failed build. -- 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