[
http://jira.codehaus.org/browse/SUREFIRE-610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=252399#action_252399
]
Kristian Rosenvold commented on SUREFIRE-610:
-
A number of empty catch blocks regarding IO have been removed in the 2.7.x
range of surefire. An IO exception happening in the wrong place could cause
this behaviour. IN 2.7 you should be getting an error message if this is the
case.
Furthermore any test code calling System.exit(non-null-value) should also be
able to produce this behaviour. You may consider running with
-Dmaven.surefire.debug=true and attach a debugger with a breakpoint in
System.exit to see if that's happening.
Surefire plugin aborts if target directory contains files/dirs
--
Key: SUREFIRE-610
URL: http://jira.codehaus.org/browse/SUREFIRE-610
Project: Maven Surefire
Issue Type: Bug
Components: Maven Surefire Plugin
Affects Versions: 2.5
Environment: Windows XP, Windows 2003k, Ubuntu, Maven 2.0.9, Maven
2.2.1
Reporter: Randall Fidler
If there are files in the target directory when the plugin is run,
specifically when tests are run inconjunction with the release:perform plugin
goal, the plugin seems to simply terminate. The overall build is failed due
to there being test failures, but the build shows no test failures (i.e.
FAILURE!) and none of the surefire reports list any test failures. It's
important to note that there will be only part of your test reports you
expect (say 50%) as the plugin appears to stop before it has executed all
tests. I believe what occurs is the plugin tries to create a report, say for
test G, and finds in the target directory that the reports files for test G
already exist that's where it pukes. As a result, you will have reports for
tests A-F and nothing more; all of these reports will NOT list any
error/failure. Also important to note is that there is no summary you
usually see, i.e. Tests: 100 Failures: 0 Errors: 0, after the surefire plugin
runs - you only see the stats for the last test and then information from the
main maven thread saying the build failed due to test failures.
It would be ideal if:
a) the surefire plugin could remove any surefire reports prior to execution
or
b) fail the build but provide a reason why, e.g. could not write the test
report for test G
--
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