So i'm using MonoDevelop
(for some MonoTouch
R&D) and have a Unit Testing class library
using NUnit
.
I have a single [TestFixture] and a couple of [Test] classes. I can run all the tests in one single go .. but i have no idea how i can DEBUG (as in, breakpoint + step through) an individual one.
How can I do this, please?
Run tests in Test Explorer If Test Explorer is not visible, choose Test on the Visual Studio menu, choose Windows, and then choose Test Explorer (or press Ctrl + E, T). As you run, write, and rerun your tests, the Test Explorer displays the results in a default grouping of Project, Namespace, and Class.
This guideline is much more aggressive and recommended if you work in a test driven manner rather than write the tests after the code has been written. The main goal here is better code coverage or test coverage.
If you have a regular NUnit test class library in MonoDevelop, you should be able to use the Mono Soft Debugger on individual tests.
In the Unit Tests tab, select the test that you want to debug and right-click on the test. Select Run Test With > Mono Soft Debugger:
Now, you should be able to step through the test code as desired:
This has been tested on a recent version, 3.0, of MonoDevelop.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With