“Forked Java VM exited abnormally” error from junit tests

前端 未结 17 1734
[愿得一人]
[愿得一人] 2020-12-08 18:22

I have a java junit test that passes when run alone on a development machine. We also have a hudson job which runs all the tests, invoked via ant, on a Mac OS X 10.4 node wi

17条回答
  •  眼角桃花
    2020-12-08 19:22

    I had this issue too. Changing the junit task from:

     
    

    to

     
    

    fixed it for me. I don't fully understand this area of ant though or why doing this would fix it. In my scenario it was an error in "BeforeFirstTest" and I think it barfs because of two ant files in my classpath (which is probably what I ought to fix)

    I think the issue is with one of the versions of ant: http://track.pmease.com/browse/QB-500;jsessionid=C1CF6999CBBDB5097A9CFCF4A11AF6C0?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

    ETA: I think batchtest="no" actually changes the classpath and hence results in exclusion of my offending ant jar.

提交回复
热议问题