You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Dan Fabulich (JIRA)" <ji...@codehaus.org> on 2007/12/19 22:45:58 UTC

[jira] Closed: (SUREFIRE-410) Surefire swallows serious errors in fork mode "once"

     [ http://jira.codehaus.org/browse/SUREFIRE-410?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Fabulich closed SUREFIRE-410.
---------------------------------

    Resolution: Cannot Reproduce

I can't reproduce this in 2.4 trunk, not the least in part because we're much smarter about how we instantiate classes in 2.4, so this kind of error won't occur in the future.

> Surefire swallows serious errors in fork mode "once"
> ----------------------------------------------------
>
>                 Key: SUREFIRE-410
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-410
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: classloading
>    Affects Versions: 2.3
>            Reporter: Yuri Schimke
>
> suerfire-reports is not created, so there is no where to check the error
> [INFO] [surefire:test]
> [INFO] Surefire report directory: C:\p4store\...\target\surefire-reports
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] There are test failures.
> [INFO] ------------------------------------------------------------------------
> The only way I see the actual error, is by setting forkMode=never.
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Unable to instantiate POJO 'class com.XXX.TestAp
> plicationEvent'; nested exception is java.lang.InstantiationException: com.XXX.TestApplicationEvent; nested exception is org.apache.mav
> en.surefire.testset.TestSetFailedException: Unable to instantiate POJO 'class co
> m.XXXX.TestApplicationEvent'; nested exception is java.l
> ang.InstantiationException: com.XXX.TestApplicationEven
> t
> In this case the exception is caused by surefire detecting  TestApplicationEvent as a test when it is not.  Once I adjusted the excludes, I got the tests running.

-- 
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