After several months of neglect, we are currently working on getting the Nancy project ship shape on Mono. We’ve gotten to the point now where everything builds and runs just fine, but we have a few tests that fail when running on Linux/Mono. The failures we are seeing are obviously bugs in the tests/stubs/mocks themselves, and we need to debug them to see exactly what’s going on. MonoDevelop has some decent test runner features, but they appear to be heavily tied to NUnit which is a problem if you happen to use xUnit
Luckily the solution is relatively simple, if a little clunky:
The runner will run the tests and you should break out into MonoDevelop whenever you hit a breakpoint.
Pretty simple, if a bit of a ballache – but hey, you shouldn’t need to debug your tests very often anywayShare:
"This post was aggregated from http://www.grumpydev.com/2011/06/30/debugging-xunit-tests-using-monodevelop/ and all comments should be submitted on the original post"