這是我第一次設置teamcity,我遇到了一些顯示結果的問題。我想要一個運行NAnt腳本的構建步驟。腳本應該通過PartCover運行我的單元測試並顯示結果。結果應該是:如何設置TeamCity/NAnt/Gallio/PartCover來顯示測試結果?
- 測試,傳遞失敗
- 覆蓋率報告
/測試,但我真的不知道如何設置的腳本或設置,甚至我應該在哪裏查看這些結果(我猜測的工件部分?)。使用下面的腳本,一切運行正常,但我無法查看任何報告。
<project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<loadtasks assembly="C:\Program Files\Gallio\bin\Gallio.NAntTasks.dll" />
<target name="test">
<gallio result-property="exitCode" failonerror="false" >
<runner-extension value="TeamCityExtension,Gallio.TeamCityIntegration" />
<files>
<include name="%system.teamcity.build.checkoutDir%\Trunk\MyLibrary.Testing\bin\Release\MyLibrary.Testing.dll"/>
</files>
</gallio>
<fail if="${exitCode != '0'}" >One or more tests failed. Please check the log for more details</fail>
</target>
</project>
對於.NET覆蓋部分,我有PartCover(2.2或2.3)選擇,但我沒有在PartCover任何參數(要這樣呢?)
感謝您的幫助!