Error with NUnit runner on OSX build agent

Hi Everyone. I'm a bit stuck on something.

I'm running TeamCity Pro 7.1.5 (build 2400) on a windows 8 box and have setup a build agent on a mountain lion mac mini.

I've got a build step that is trying to run NUnit tests on the osx build agent.

nunit-build-problems.png

When the step runs, I get the following in the build log:

[16:06:09]Checking for changes

[16:06:09]Publishing internal artifacts

[16:06:09][Publishing internal artifacts] Sending build.start.properties.gz file

[16:06:09]Clearing temporary directory: /Users/devvie/teamcity/temp/buildTmp

[16:06:09]Checkout directory: /Users/devvie/teamcity/work/7e07d77822860876

[16:06:09]Repository sources transferred

[16:06:09]Updating sources: server side checkout

[16:06:09]Step 1/3: Mac Dependencies (Command Line) (1s)

[16:06:09][Step 1/3] Starting: /Users/devvie/teamcity/temp/agentTmp/custom_script6076578954064341522

[16:06:09][Step 1/3] in directory: /Users/devvie/teamcity/work/7e07d77822860876

[16:06:10][Step 1/3] Process exited with code 0

[16:06:11]Step 2/3: Mac Build (MSBuild) (1s)

[16:06:11][Step 2/3] Starting:  /Library/Frameworks/Mono.framework/Versions/2.10.12/bin/mono  /Users/devvie/teamcity/plugins/dotnetPlugin/bin/JetBrains.BuildServer.MsBuildBootstrap.exe  /workdir:/Users/devvie/teamcity/work/7e07d77822860876  /msbuildPath:/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/4.0/xbuild.exe

[16:06:11][Step 2/3] in directory: /Users/devvie/teamcity/work/7e07d77822860876

[16:06:12][Step 2/3] Process exited with code 0

[16:06:13]Step 3/3: Mac Tests (NUnit) (2s)

[16:06:13][Step 3/3] Starting:  /Library/Frameworks/Mono.framework/Versions/2.10.12/bin/mono  /Users/devvie/teamcity/plugins/dotnetPlugin/bin/JetBrains.BuildServer.NUnitLauncher.exe  #TeamCityImplicit

[16:06:13][Step 3/3] in directory: /Users/devvie/teamcity/work/7e07d77822860876

[16:06:14][Step 3/3] Start TeamCity NUnit Test Runner

[16:06:14][Step 3/3] Running NUnit-2.6.2 tests under .NET Framework mono-4.0 x86

[16:06:15][Step 3/3] System.NotImplementedException: The requested feature is not implemented.   at NUnit.Core.TestExecutionContext.Save () [0x00000] in <filename unknown>:0    at NUnit.Core.TestSuite.RunSuiteInContext (EventListener listener,  ITestFilter filter) [0x00000] in <filename unknown>:0    at NUnit.Core.TestSuite.Run (EventListener listener, ITestFilter filter) [0x00000] in <filename unknown>:0    at NUnit.Core.SimpleTestRunner.Run (EventListener listener,  ITestFilter filter, Boolean tracing, LoggingThreshold logLevel)  [0x00000] in <filename unknown>:0

[16:06:15][Step 3/3] 2013-05-10  16:06:15,801 [TestRunnerThread] WARN   JetBrains.Container.Log4netDefaultLoggerInitializer - Unhandled  exception in current domain: System.ApplicationException: Exception in  TestRunnerThread ---> System.NotImplementedException: The requested  feature is not implemented.

[16:06:15][Step 3/3] at NUnit.Core.TestExecutionContext.Save () [0x00000] in <filename unknown>:0

[16:06:15][Step 3/3] at NUnit.Core.TestSuite.RunSuiteInContext (EventListener listener,  ITestFilter filter) [0x00000] in <filename unknown>:0

[16:06:15][Step 3/3] at NUnit.Core.TestSuite.Run (EventListener listener, ITestFilter filter) [0x00000] in <filename unknown>:0

[16:06:15][Step 3/3] at NUnit.Core.SimpleTestRunner.Run (EventListener listener,  ITestFilter filter, Boolean tracing, LoggingThreshold logLevel)  [0x00000] in <filename unknown>:0

[16:06:15][Step 3/3] --- End of inner exception stack trace ---

[16:06:15][Step 3/3] at NUnit.Core.TestRunnerThread.TestRunnerThreadProc () [0x00000] in <filename unknown>:0

[16:06:15][Step 3/3] at System.Threading.Thread.StartInternal () [0x00000] in <filename  unknown>:0 ,   at NUnit.Core.TestRunnerThread.TestRunnerThreadProc ()  [0x00000] in <filename unknown>:0

[16:06:15][Step 3/3] at System.Threading.Thread.StartInternal () [0x00000] in <filename  unknown>:0 , System.NotImplementedException: The requested feature is  not implemented.

[16:06:15][Step 3/3] at NUnit.Core.TestExecutionContext.Save () [0x00000] in <filename unknown>:0

[16:06:15][Step 3/3] at NUnit.Core.TestSuite.RunSuiteInContext (EventListener listener,  ITestFilter filter) [0x00000] in <filename unknown>:0

[16:06:15][Step 3/3] at NUnit.Core.TestSuite.Run (EventListener listener, ITestFilter filter) [0x00000] in <filename unknown>:0

[16:06:15][Step 3/3] at NUnit.Core.SimpleTestRunner.Run (EventListener listener,  ITestFilter filter, Boolean tracing, LoggingThreshold logLevel)  [0x00000] in <filename unknown>:0

[16:06:15][Step 3/3] 2013-05-10  16:06:15,815 [TestRunnerThread] ERROR  JetBrains.TeamCity.NUnitLauncher.ErrorLoggerImpl - Unhandled exception  in remote appdomain: System.ApplicationException: Exception in  TestRunnerThread ---> System.NotImplementedException: The requested  feature is not implemented.

[16:06:15][Step 3/3] at NUnit.Core.TestExecutionContext.Save () [0x00000] in <filename unknown>:0

[16:06:15][Step 3/3] at NUnit.Core.TestSuite.RunSuiteInContext (EventListener listener,  ITestFilter filter) [0x00000] in <filename unknown>:0

[16:06:15][Step 3/3] at NUnit.Core.TestSuite.Run (EventListener listener, ITestFilter filter) [0x00000] in <filename unknown>:0

[16:06:15][Step 3/3] at NUnit.Core.SimpleTestRunner.Run (EventListener listener,  ITestFilter filter, Boolean tracing, LoggingThreshold logLevel)  [0x00000] in <filename unknown>:0

[16:06:15][Step 3/3] --- End of inner exception stack trace ---

[16:06:15][Step 3/3] at NUnit.Core.TestRunnerThread.TestRunnerThreadProc () [0x00000] in <filename unknown>:0

[16:06:15][Step 3/3] at System.Threading.Thread.StartInternal () [0x00000] in <filename unknown>:0

[16:06:15][Step 3/3] Unhandled  exception in remote appdomain: System.ApplicationException: Exception  in TestRunnerThread ---> System.NotImplementedException: The  requested feature is not implemented.   at NUnit.Core.TestExecutionContext.Save () [0x00000] in <filename unknown>:0    at NUnit.Core.TestSuite.RunSuiteInContext (EventListener listener,  ITestFilter filter) [0x00000] in <filename unknown>:0    at NUnit.Core.TestSuite.Run (EventListener listener, ITestFilter filter) [0x00000] in <filename unknown>:0    at NUnit.Core.SimpleTestRunner.Run (EventListener listener,  ITestFilter filter, Boolean tracing, LoggingThreshold logLevel)  [0x00000] in <filename unknown>:0    --- End of inner exception stack trace ---   at NUnit.Core.TestRunnerThread.TestRunnerThreadProc () [0x00000] in <filename unknown>:0    at System.Threading.Thread.StartInternal () [0x00000] in <filename unknown>:0

[16:06:15][Step 3/3] Process exited with code 0

[16:06:15]Publishing internal artifacts

[16:06:15][Publishing internal artifacts] Sending build.finish.properties.gz file

[16:06:15]Build finished


I'm not sure what I'm doing wrong. This is my first crack at using TeamCity, Mono and NUnit on OSX, so I bet I've missed something somewhere.

Thanks for helping!

3 comments
Comment actions Permalink

Hi Rob

seems like a 2.6.2 bug on Mono, so you need 2.6.3. https://bugs.launchpad.net/nunitv2/+bug/1079296
why are you executing NUnit on Mono on OSX, instead of on a Windows machine directly? (for example, install an agent on the Win8 box)

regards
ziv shapira

0
Comment actions Permalink

Hi Ziv.

Thanks for the reply. I'll give it a go with NUnit 2.6.3.

Good question about running the tests on Windows 8. I'm doing that also. I want to have the tests run on Windows and Mac. I'm building a cross plaftorm app; .Net on Windows and Mono on Mac / Android / iOS. I want to make sure the non platform specific stuff works right on all plaftorms.

I'll come back and give an update once I've tried NUnit 2.6.3.

0
Comment actions Permalink

So I decided to switch from full NUnit to NUnitLite for my test runner. As a result, I don't need the NUnit task runner anymore. I use rake and albacore for most of my build stuff and execute my nunit tests through a rake task.

Thanks again for the help, Ziv.

0

Please sign in to leave a comment.