Nunit-console.exe使用Nant和Bamboo失败,返回码7 [英] Nunit-console.exe fails with return code 7 using Nant and Bamboo

查看:126
本文介绍了Nunit-console.exe使用Nant和Bamboo失败,返回码7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Bamboo构建服务器上运行nunit测试时,我得到的不是太大的saing错误. 它导致将构建结果显示为红色,并表明项目只有27个单元测试并且所有测试都通过了(项目有500多个测试,并且有些失败) 我尝试在本地计算机上使用nunit-console运行相同的测试,但是它运行没有任何问题. 竹日志:

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) 

您是否有任何想法我该如何调试此问题或return code 7是什么意思?

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

推荐答案

来自

  • 如果所有测试均通过,则为零
  • 如果nunit-console由于某种原因无法运行,则为负
  • 或一个正数,表示有多少次测试失败.
    • zero if all tests passed
    • negative if nunit-console could not run for some reason
    • or a positive number indicating how many tests failed.

    所以返回码7表示您的7个个别测试以某种方式失败.

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

    这篇关于Nunit-console.exe使用Nant和Bamboo失败,返回码7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆