Bug 1369 - Unit tests won't load.
Summary: Unit tests won't load.
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: NUnit ()
Version: 2.6
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2011-10-08 19:33 UTC by karldickman
Modified: 2011-10-15 21:03 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description karldickman 2011-10-08 19:33:08 UTC
I am trying to run unit tests on a project, but the tests will not load. Every test has a "Load failed" message. This is the stack trace printed when I attempt to run a single test.

ERROR [2011-10-08 16:28:02Z]: System.NullReferenceException: Object reference not set to an instance of an object

Server stack trace: 
  at NUnit.Util.DomainManager.CreateDomain (NUnit.Core.TestPackage package) [0x00000] in <filename unknown>:0 
  at MonoDevelop.NUnit.External.ExternalTestRunner.GetRunner (System.String assemblyPath) [0x00000] in <filename unknown>:0 
  at MonoDevelop.NUnit.External.ExternalTestRunner.Run (IRemoteEventListener listener, ITestFilter filter, System.String path, System.String suiteName, System.Collections.Generic.List`1 supportAssemblies) [0x00000] in <filename unknown>:0 
  at (wrapper managed-to-native) System.Runtime.Remoting.RemotingServices:InternalExecute (System.Reflection.MethodBase,object,object[],object[]&)
  at System.Runtime.Remoting.RemotingServices.InternalExecuteMessage (System.MarshalByRefObject target, IMethodCallMessage reqMsg) [0x00000] in <filename unknown>:0 

Exception rethrown at [0]: 

  at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke (System.Runtime.Remoting.Proxies.RealProxy rp, IMessage msg, System.Exception& exc, System.Object[]& out_args) [0x00000] in <filename unknown>:0
Comment 1 Mike Krüger 2011-10-10 02:11:36 UTC
Try 2.8 It contains some bugfixes in the unit test addin.
(btw. which mono version/distro do you use?)

Reopen, if it happens again.
Comment 2 karldickman 2011-10-15 21:03:55 UTC
Thank you for pointing me in that direction.  I am running Ubuntu 11.10, which comes with Monodevelop 2.6 by default.  I had to build from source since there's no Monodevelop 2.8 package available for Oneiric, but that was no trouble at all.  Upgrading to Monodevelop 2.8 nicely resolves the problems I mentioned in the original bug report.