0
我不能爲我的生活讓我nant創建文件時測試失敗而歸(從而防止行駛時的包裝和神器步驟)nunit2南特任務總是返回退出代碼0(TeamCity的5.0)
終止這是惡性文件的單位部分:
<target name="unittest" depends="build">
<nunit2 verbose="true" haltonfailure="false" failonerror="true" failonfailureatend="true">
<formatter type="Xml" />
<test assemblyname="Code\AppMonApiTests\bin\Release\AppMonApiTests.dll" />
</nunit2>
</target>
而且不管什麼真/假組合我設置haltonfailure,failonerror,failonfailureatend性能,結果總是這樣:
[11:15:09]: Some tests has failed in C:\Build\TeamCity\buildAgent\work\ba5b94566a814a34\Code\AppMonApiTests\bin\Release\AppMonApiTests.dll, tests run terminated.
[11:15:09]: NUnit Launcher exited with code: 1
[11:15:09]: Exit code 0 will be returned.1
請幫忙,因爲我不想在單元測試失敗的地方發佈binarys!
TeamCity的5.0構建10669
AppMonApiTests.dll引用
nunit.framework.dll中v2.5.3.9345
單元未安裝在構建服務器或GAC'd
上使用Nant-0.85和Nantcontrib-0.85
個謝謝, 喬納森
你好,刪除這些屬性沒有區別。請記住,我沒有使用nunit控制檯,但我依靠TeamCity來取代nunit2任務。我沒有使用任何nunit TeamCity插件或跑步者,所以運行測試的確實是一個謎團...... doco在這個整個區域有點貧窮和沮喪 – Jonathan 2009-12-24 12:38:38