[ http://jira.codehaus.org/browse/SUREFIRE-704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=267467#action_267467 ]
Kristian Rosenvold commented on SUREFIRE-704: --------------------------------------------- No it's actually all related to SUREFIRE-732. All of the reporting logic within surefire has just been way too complex. I did some analysis trying to understand "what is the correct functionality" *every single* version from 2.4.1 until today has had minor undocumented "adjustments"/bugs to the reporting logic that was not documented in release notes. And in the same manner I probably blew console output in xml logs for failing tests for 2.7.x (I will make a testcase for that now that I'm aware of it). Hopefully 2.9+ (formerly 2.8.2) will stabilize this. In current trunk the reporting logic is much simpler than earlier, and most of the code now reads quite well. I'm just trying to make sure nothing is broken (read: testing extensively) before releasing 2.9. SUREFIRE-725 may end up waiting until 2.9.1. > maven surefire Error while executing forked tests.; nested exception is > java.lang.IllegalStateException: testSetStarting called twice > ------------------------------------------------------------------------------------------------------------------------------------- > > Key: SUREFIRE-704 > URL: http://jira.codehaus.org/browse/SUREFIRE-704 > Project: Maven Surefire > Issue Type: Bug > Components: Junit 4.x support > Affects Versions: 2.7.2 > Environment: Windows/Linux/SunOS > Reporter: S Daigle > Assignee: Kristian Rosenvold > Fix For: 2.8.2 > > Attachments: sf-pom-config.txt, stack.txt, surefire-272.txt, > surefire-failure.log, surefire.txt, test-out.txt > > > We want to upgrade from our current 2.5 version of the maven-surefire-plugin > to something newer but cannot get past the error below. We've tried versions > 2.6, 2.7 up to and including 2.7.3-SNAPSHOT but they all fail. > When setting forkmode to "once" and redirectTestOutputToFile to "true", we > get the following error on multiple tests: > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-surefire-plugin:2.7.3-SNAPSHOT:test > (default-test) on project api: Error while executing forked tests.; nested > exception is java.lang.IllegalStateException: testSetStarting called twice -> > [Help 1] > Please see the attachment for full "mvn -e test" output. > If we set the redirectTestOutputToFile to false, it works but we need this > option set to true. > Thanks -- 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