我写出一些习俗逻辑,使联尼特测试进入TFS大楼。 除非试验没有穿过建筑,但部分成功而不是失败,否则所有工作都是美丽的。 任何人都知道我如何告诉它失败?
在座各位:
<BuildStep Message="Integration Tests Passed"
Condition="$(TestsResult) == True "
TeamFoundationServerUrl="$(TeamFoundationServerUrl)"
BuildUri="$(BuildUri)"
Id="$(IntegrationTestsStepId)"
Status="Succeeded" />
<BuildStep Message="Integration Tests FAILED"
Condition="$(TestsResult) != True "
TeamFoundationServerUrl="$(TeamFoundationServerUrl)"
BuildUri="$(BuildUri)"
Id="$(IntegrationTestsStepId)"
Status="Failed"
CompilationStatus="Failed"
TestStatus="Failed"/>
<!-- If NUnit failed it s time to error out -->
<Error Condition="$(TestsResult) != True " Text="Unit Tests Failed" />