Nunit-console.exe fails with return code 7 using Nant and Bamboo

空扰寡人 提交于 2019-12-11 11:23:08

问题


I'm getting not too much saing error while running nunit test on Bamboo build server. It causes showing build resuts as red and shows that project has only 27 unit test and all they passing (project has more than 500 tests and some are failing) I've tried to run the same test using nunit-console on my local machine, but it runs without any problems. Bamboo log:

[exec] D:\BambooAgent\..\nant.build(277,5): 
[exec] External Program Failed: C:\Program Files\NUnit 2.5.9\bin\net-2.0\nunit-console.exe (return code was 7) 

Do you have any ideas how can I debug this problem or what return code 7 means?


回答1:


From the NUnit discussion group, the return code from nunit-console is either:

  • zero if all tests passed
  • negative if nunit-console could not run for some reason
  • or a positive number indicating how many tests failed.

So a return code of 7 means that 7 of your individual tests failed in some way.



来源:https://stackoverflow.com/questions/22788598/nunit-console-exe-fails-with-return-code-7-using-nant-and-bamboo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!