Work around for TeamCity NUnit test runner see:
http://umbraco.com/follow-us/blog-archive/2013/1/16/make-teamcity-respect-failing-nunit-tests-and-stop-the-build.aspx
This commit is contained in:
15
src/Umbraco.Tests/TeamCity.proj
Normal file
15
src/Umbraco.Tests/TeamCity.proj
Normal file
@@ -0,0 +1,15 @@
|
||||
<Project DefaultTargets="RunTests" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<NUnitAddinFiles Include="$(teamcity_dotnet_nunitaddin)-2.6.2.*" />
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="RunTests">
|
||||
<PropertyGroup>
|
||||
<NUnitHome>$(MSBuildProjectDirectory)\..\tools\NUnit</NUnitHome>
|
||||
<NUnitFileName>$(MSBuildProjectDirectory)\bin\Debug\Umbraco.Tests.dll</NUnitFileName>
|
||||
</PropertyGroup>
|
||||
|
||||
<Copy SourceFiles="@(NUnitAddinFiles)" DestinationFolder="$(NUnitHome)" />
|
||||
<Exec Command="$(NUnitHome)\NUnit-Console.exe $(NUnitFileName)" />
|
||||
</Target>
|
||||
</Project>
|
||||
Reference in New Issue
Block a user