3
我想使用Gallio(v3.1)/ MbUnit/NCover在我的C#代碼中運行一個單元測試,作爲我的持續集成系統的構建過程的一部分。Gallio和MbUnit在NAnt
我可以得到Gallio.Echo.exe來執行測試並輸出一個XML文件(儘管它似乎在檢查文件夾==大約6.5MB .xml文件中的所有.dll文件!!),但當我試圖讓NCover也連接起來時,它會變得很棒。
THEN:我試着使用說明書from here,如使用楠任務:
<gallio result-property="testrunner.exit-code"
application-base-directory="bin/debug"
runner-type="NCover"
failonerror="false"
report-name-format="gallio-MyTestProject"
report-types="xml"
report-directory="bin/debug">
<runner-property value="NCoverArguments='//q //ea CoverageExcludeAttribute //a MyTestProject.dll'" />
<runner-property value="NCoverCoverageFile='coverage-MyTestProject.xml'" />
<assemblies>
<include name="bin/debug" />
</assemblies>
</gallio>
,但我得到我的命令行下面的錯誤:
Element Required! There must be a least one 'files' element for <gallio ... />.
我曾嘗試指定我想檢查的.dll文件,但它仍然會出現此消息。任何建議都非常感謝!
這是,而不是現在:http://code.google.com/p/mb-unit/source/browse/trunk/v3/src/Extensions/NAnt/Gallio。 NAntTasks/GallioTask.cs –
2009-11-25 20:55:25
非凡!如果您將評論添加爲答案,我可以說它是「贏家」。 – 2009-11-27 08:51:02