[MonoDevelop] NUnit integration problem

Cyryl Płotnicki-Chudyk cyryl at power.com.pl
Wed Feb 25 15:50:23 EST 2009


On 02/25/2009 06:03:53 PM, Cyryl Płotnicki-Chudyk wrote:
> Hello there !
> I got Monodevelop 1.9.2 installed and I am pretty happy with it.
> 
> The problem is I have solution with two projects in it, one with my 
> library and other 
> with tests for that library in it.
> When I try to run tests from the integrated runner it tells me that 
> there was an internal error. [Screenshot attached]
> By the way, is there a way to debug NUnit tests in monodevelop ?
> 

I compiled the latest  version from source [r128027] and then tried to 
debug the problem:

1) on the unit tests tree pane 'debug' context menu option appeared - 
that's great !

2) after clicking it stopped the debugger at 
ExternalTestRunner.cs:68  :
NUnitTestRunner GetRunner (string assemblyPath)
{
=>	TestPackage package = new TestPackage (assemblyPath);

 continue gives this output on the console:
ERROR [2009-02-25 21:48:21Z]: System.NullReferenceException: Object 
reference not set to an instance of an object

Server stack trace: 
  at NUnit.Core.TestPackage.IsAssemblyFileType (System.String path) 
[0x00000] 
  at NUnit.Core.TestPackage..ctor (System.String name) [0x00000] 
  at MonoDevelop.NUnit.External.ExternalTestRunner.GetRunner 
(System.String assemblyPath) [0x00000] in /home/cyryl/mono/monodevelop/
main/src/addins/NUnit/Services/ExternalTestRunner.cs:68 
  at MonoDevelop.NUnit.External.ExternalTestRunner.Run 
(IRemoteEventListener listener, ITestFilter filter, System.String path, 
System.String suiteName, System.Collections.Generic.List`1 
supportAssemblies) [0x00000] in /home/cyryl/mono/monodevelop/main/src/
addins/NUnit/Services/ExternalTestRunner.cs:53 
  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) [0x000a4] 
in /usr/src/packages/BUILD/mono-2.2/mcs/class/corlib/
System.Runtime.Remoting/RemotingServices.cs:147 

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] 
Server OnTargetEvent: TargetExited stopped:False data:0 internal:False 
queue:0 thread: running:True
Thread 9 exited.



regards
-- 
Cyryl Płotnicki-Chudyk
Project Manager
Power Media S.A.
http://www.power.com.pl

District Court for Wroclaw-Fabryczna
KRS: 0000281947
NIP: PL-898-16-47-572
Capital stock: 640 000 PLN




More information about the Monodevelop-list mailing list