Teamcity NUnit launcher fails

I'm trying to run NUnit2 tests using ${teamcity.dotnet.nunitlauncher} (from within NAnt)
It fails with the Exception shown below.

I tried to execute it manually with the following command:

C:\TeamCity\buildAgent\plugins\dotnetPlugin\bin>JetBrains.BuildServer.NUnitLauncher.exe ANY x86 NUnit-2.4.7 d:\projects\TelashopStorefront\build\TelashopStorefront-1.0.0.Beta1-debug\bin\net-3.5\TelashopStorefront.Services.Tests.dll

Failure executing test(s). If you assembly is not built using NUnit version 2.4.7.0, then ensure you have redirected assembly bindings. Consult the documentation of the ]]> task for more information.
: Version 2.0 is not a compatible version.
StackTrace:

Server stack trace:
at System.Reflection.AssemblyName.nGetFileInformation(String s)
at System.Reflection.AssemblyName.GetAssemblyName(String assemblyFile)
at NUnit.Core.Builders.TestAssemblyBuilder.Load(String path)
at NUnit.Core.Builders.TestAssemblyBuilder.Build(String assemblyName, Boolean autoSuites)
at NUnit.Core.Builders.TestAssemblyBuilder.Build(String assemblyName, String testName, Boolean autoSuites)
at NUnit.Core.TestSuiteBuilder.Build(TestPackage package)
at NUnit.Core.SimpleTestRunner.Load(TestPackage package)
at NUnit.Core.ProxyTestRunner.Load(TestPackage package)
at NUnit.Core.ProxyTestRunner.Load(TestPackage package)
at NUnit.Core.RemoteTestRunner.Load(TestPackage package)
at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(MethodBase mb, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)

Exception rethrown at :
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at NUnit.Core.TestRunner.Load(TestPackage package)
at JetBrains.TeamCity.NUnitLauncher.NUnitRunner.LoadTest(String testAssembly, String testName, TestRunner runner)
at JetBrains.TeamCity.NUnitLauncher.NUnitRunnerBase.Run()

1 comment

Ok. I solved this.

it doesn't seem to handle the 'ANY' argument well.

When I change this to 'v2.0' everything seems fine.

0

Please sign in to leave a comment.