Jenkins在msbuild中运行C#nunit测试而没有得到正确的错误代码

时间:2015-11-19 13:19:06

标签: c# powershell msbuild nunit

我正在通过Jenkins运行C #nunit测试,'build'成功,但是nunit测试失败,当我检查LASTEXITCODE我得到0(成功)时,有没有办法获得nunit的实际结果。

输出结果为:

Runtime Environment - 
   OS Version: Microsoft Windows NT 6.1.7601 Service Pack 1
   CLR Version: 4.0.30319.34209 ( Net 4.5 )

ProcessModel: Default    DomainUsage: Single
Execution Runtime: v4.0
Run list: C:\Jenkins\workspace\regressionTests\TestList.txt

Tests run: 1, Errors: 1, Failures: 0, Inconclusive: 0, Time: 45.106507 seconds
  Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0

Errors and Failures:
1) TearDown Error :   
USERACCOUNT = TESTUSER, DEFAULT_CLIENT = UNKNOWN, DEFAULT_ACCOUNT = UNKNOWN)
 Activating Dataflow Dialog
Expected: True within 1000 millisecond delay
But was:  False

TearDown : System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation.
  ----> System.NullReferenceException : Object reference not set to an instance of an object.

欢迎任何建议,我尝试搜索StackOverflow和Google,但无济于事。

0 个答案:

没有答案