我需要在jenkins開始測試之前啓動一個調試項目Nunit, 可以做到這一點嗎?Jenkins和NUnit的Debuggin C#
我有15個項目的解決方案,我需要調試的所有解決方案,用於NUnit的做一個測試,如果我不開始調試NUnit的所有測試回傳失誤
我需要在jenkins開始測試之前啓動一個調試項目Nunit, 可以做到這一點嗎?Jenkins和NUnit的Debuggin C#
我有15個項目的解決方案,我需要調試的所有解決方案,用於NUnit的做一個測試,如果我不開始調試NUnit的所有測試回傳失誤
可以運行在詹金斯單元測試通過添加新的目標:
<target name="build-debug" description="Build and run tests">
<echo message="Building the debug configuration" />
<exec program="${msbuild}" commandline='"${rng-solution}" /v:m /nologo /property:WarningLevel=0 /t:Rebuild /p:Configuration="Debug" /p:Platform="Any CPU"' />
<echo message="Running unit tests" />
<nunit2>
<formatter type="Plain" />
<formatter type="Xml" outputdir="${main-directory}\BuildResults\" usefile="true" extension=".xml"/>
<test assemblyname="${main-directory}\Projects\MyUnitTests\bin\MyUnitTests.dll">
</test>
</nunit2>
</target>
這將運行您的單元測試。謝謝
解決方案是使用一些管道插件,它們讓你一步到位(每一個都必須是一個不同的工作,也許在一個共享的工作空間中),並且它們也可以作爲條件讀取狀態前的步驟。