[ http://jira.codehaus.org/browse/SUREFIRE-477?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dan Fabulich closed SUREFIRE-477. --------------------------------- Resolution: Cannot Reproduce Something is wrong with your attached file! It's 0.0 kb. Try again? > Issue with redirectTestOutputToFile and unit test with System.out.print > ----------------------------------------------------------------------- > > Key: SUREFIRE-477 > URL: http://jira.codehaus.org/browse/SUREFIRE-477 > Project: Maven Surefire > Issue Type: Bug > Affects Versions: 2.4 > Reporter: Denis Sadowski > Priority: Minor > Attachments: command_prompt.JPG, redirectIssue.zip, surefire477.zip > > > We have the Maven surefire plugin configured to redirect test output to file > using the redirectTestOutputToFile property. > Consider the following unit test: > import static org.junit.Assert.*; > import org.junit.Test; > public class PrintUnitTest { > @Test > public final void test1() { > assertTrue(true); > System.out.print(System.currentTimeMillis()); > } > } > The surefire plugin fails to print any more information to the console window > after "Running PrintUnitTest". Hence does not show the "Tests run ........." > line. > Furthermore, if other unit tests are run after this one, they run, but there > output is also not shown on the console window. If a build failure occurs in > any of the unit tests the Results, with mention of which tests failed are not > printed. -- 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