I've created a build that uses the MSBuild Runner to run tests through the TeamCity NUnit test launcher, using code similar to:
<UsingTask TaskName="NUnit" AssemblyFile="$(teamcity_dotnet_nunitlauncher_msbuild_task)"/>
<NUnit Assemblies="Test.dll" Platform="x86" IncludeCategory="ScriptOne" NUnitVersion="NUnit-2.4.1" Addins="Addin.dll" />
The addin being used looks at each test within the test fixture and the tag associated with it to run the tests in a certain order, with recently failed tests not being run first. This worked fine in TeamCity 4.0 but after upgrading to 4.5.4, the entire test script has been running twice in a row. For example, in the build log, I'll see:
[Project "testRunner.xml.teamcity.patch.tcprojx" (RunScript target(s)):] c:\BuildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher.exe "@@" C:\BuildAgent\temp\buildTmp\tmpBEF7.tmp
Appling ordering for tests.
<list of tests run>
Run all unordered tests.
<list of tests run - same as previous list>
Does anyone know what could be causing this and what the solution would be?