4

I want to debug my tests, to examine every test to see where exactly is fail. I was using coderush which is awesome tool but my trial period 1month is expired.

Any suggestion is welcome.

3
  • 4
    "I was using coderush which is awesome tool but my trial period 1month is expired." If you think it's awesome, why not buy it?! Commented Jun 23, 2012 at 9:47
  • What is stopping you from debugging your tests ? Is it a test runner for NUnit you need ? Commented Jun 23, 2012 at 9:51
  • testdriven.net is a great runner, and is free for personal use. Commented Jun 24, 2012 at 13:37

1 Answer 1

6

As Mark says, if you find a tool really useful, buy it. Personally I use ReSharper to run my tests, but that's a personal choice.

I also use NCrunch, which is free (and wonderful). I believe you can use that for debugging too.

However, you can debug with the NUnit GUI - just attach the debugger to the process, set breakpoints and run the tests.

However, I'd typically try not to require using the debugger to fix tests. When an assertion fails in a well-designed test, that usually gives enough information to fix the implementation, after a bit of thought. If it doesn't, that suggests it's a complicated scenario - which sometimes suggests adding more tests to handle each part of the scenario. But yes, occasionally you will need the debugger...

Sign up to request clarification or add additional context in comments.

1 Comment

I'll give it a shot to NCrunch. Thanks though

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.