[MonoDevelop] Issues debugging unit tests in MonoDevelop 2.4.2
Lluis Sanchez Gual
slluis.devel at gmail.com
Mon Mar 14 05:28:55 EDT 2011
El dg 13 de 03 de 2011 a les 15:05 -0700, en/na emacarie va escriure:
> I have been developing on .NET with VS and Sharp Develop for a while, and
> have just been recently trying out Mono Develop so please be patient if this
> is a dumb question :)
>
> I was trying out Mono Develop 2.4.2 on a fresh install of openSuse 11.4
> with a project I was working on. The good news is that my project compiles
> and work perfectly :)
>
> The bad news is that I am having a hard time developing using my
> preferred style of doing TDD.
> I have two problems:
> 1) When I debug unit tests either from the mono UI or the nunit test
> runner and I use the expression evaluator to evaluate a list I get the
> following error:
> Unknown type 'System.Collections.Generic.CollectionDebuggerView'
> This occurs when I have a collection with a custom class (any
> custom class): i.e.
> List objList = new List() {new TestClass(), new TestClass()} ;
> The expression evaluator works correctly if I am debugging an
> executable using F5
It's hard to tell what's wrong without a specific test case. Could you
please file a bug (http://monodevelop.com/Bugs) and attach a simple test
project that reproduces the issue?
>
> 2) When I debug a program, if there is some sort of error or loop, I
> can stop it using the Run->Stop (Shift + F5)
> This option is not available when I am running my unit tests. It
> looks like I need to let my unit tests to run to completion. Sometimes when
> I do TDD I screw up a loop and I would like to break out of the code. Is
> this possible some other way ?
You can stop the tests using the stop button available in the test
results pad. However, it won't work if the debugger is paused (for
example, after hitting a breakpoint). This is a known issue that has
been recently fixed.
Lluis.
More information about the Monodevelop-list
mailing list