msbuild - 在哪里可以找到 NUnit 控制台退出代码的含义?

标签 msbuild nunit nunit-console

我从 MSBuild 收到错误消息:

"nunit-console.exe" exited with code -100.

哪里可以找到 NUnit 控制台退出代码的含义?

最佳答案

错误代码-100代表UNEXPECTED_ERROR

static ConsoleUi()
{
    OK = 0;
    INVALID_ARG = -1;
    FILE_NOT_FOUND = -2;
    FIXTURE_NOT_FOUND = -3;
    TRANSFORM_ERROR = -4;
    UNEXPECTED_ERROR = -100;
}

编辑: 更多信息来自a thread on the NUnit-Discuss google group :

Additionally, positive values give a count of failed tests in the run.

The -100 return code is a catch-all, usually indicating an unhandled exception in your application or test. It should normally come with a stack trace.

关于msbuild - 在哪里可以找到 NUnit 控制台退出代码的含义?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3889577/

相关文章:

msbuild - 如果目标失败,则停止 msbuild 进程

.net - Visual Studio 2008 中的 BaseOutputPath 错误?

c# - 在 C# 中处理条件依赖的最佳方式是什么

.net - nunit中的Explicit和Ignore属性之间有什么区别

c# - 如果一个属性可为空,则比较对象时 FluentAssertions 会失败

asp.net - VS2010发布Web应用程序速度慢

c# - 调用扩展方法的设置结果

c# - 我可以使用 NUnit3 控制台覆盖并行运行的测试实例的数量吗

wpf - NUnit 测试过程经常因 WPF 控件失败

jenkins - 使用两个不同的作业构建和运行单元测试