C# 4.0 Debuggin C#In Jenkins和NUnit
在jenkins开始测试Nunit之前我需要启动一个调试项目, 有可能做到这一点吗C# 4.0 Debuggin C#In Jenkins和NUnit,c#-4.0,jenkins,jenkins-plugins,nunit-console,C# 4.0,Jenkins,Jenkins Plugins,Nunit Console,在jenkins开始测试Nunit之前我需要启动一个调试项目, 有可能做到这一点吗 我有一个包含15个项目的解决方案,我需要调试所有解决方案,以便在nunit中进行测试,如果我没有开始调试nunit all测试返回错误,您可以通过添加新目标在jenkins中运行单元测试: <target name="build-debug" description="Build and run tests"> <echo message="Building the debug conf
我有一个包含15个项目的解决方案,我需要调试所有解决方案,以便在nunit中进行测试,如果我没有开始调试nunit all测试返回错误,您可以通过添加新目标在jenkins中运行单元测试:
<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>
这将运行单元测试。感谢解决方案是使用一些管道插件,它们让您完成一个步骤(每个步骤都必须是不同的作业,可能在共享工作区中),并且它们也可以是有条件的,在状态之前阅读步骤