NUnit test fixture running twice in a row

Hi,

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)"/>

<Target Name="RunScript">

<NUnit Assemblies="Test.dll" Platform="x86" IncludeCategory="ScriptOne" NUnitVersion="NUnit-2.4.1" Addins="Addin.dll" />

</Target>

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.
Test.dll (20m:51s)
:
<list of tests run>
:
Run all unordered tests.
Test.dll (19m:40s)
:
<list of tests run - same as previous list>
:



Does anyone know what could be causing this and what the solution would be?


Thanks,
Claire
3 comments
Comment actions Permalink

This is a known issue. It is fixed for TeamCity 5.0 EAP.
Please have a look to the related issue at
http://www.jetbrains.net/tracker/issue/TW-9617

Thanks!

0
Comment actions Permalink

Unfortunately we're not able to upgrade to TeamCity 5.0 at this time, is there a workaround to this issue or would it be possible to get a fix for this in 4.5?

Thanks,
Claire

0
Comment actions Permalink
I've created a patch for you at:
ftp://ftp.intellij.net/pub/.teamcity/nunit/dotnetPlugin-9106.zip

To apply the patch please do the following:
- open <server>/WEB-APPS/ROOT/update/plugins folder
- backup dotnetPlugin.zip
- update replace it with downloaded file
- wait till all build agents automatically update themselves
- try the build again.

Thanks!

0

Please sign in to leave a comment.