Brendan Tompkins

Sponsors

The Lounge

Wicked Cool Jobs

News

Advertisement

Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at imagehelp@codebetter.com
Test With Debugger from Sam Gentile

In case you're not tuned into Sam Gentile, he just posted about a feature of  TestDriven.NET that I knew about, but never tried until now:

With the “Test With...Debugger” right menu option in TestDriven.NET, you can simply out your cursor on the unit test name you want to debug (in the code) and choose this option. The debugger will automatically start up in your unit test and you can set breakpoints.

This is great for doing legacy test harnesses.  I'm nearing the end of writing hundreds of tests to harness our existing business tier code here, and TestDriven.NET has proved invaluable.  I'm hoping to blog more about this process.  This experience has definitely paid off, I've uncovered countless bugs and dead code.  Best of all, I'll be able to begin refactoring stuff without worry of making breaking changes.  I hope I'm not sounding preachy, but if you're not doing TDD or at the very least unit testing your code, you'd be doing yourself and your successor a big big favor by learning about testing.  -Brendan


Posted Thu, Nov 4 2004 10:52 AM by Brendan Tompkins

[Advertisement]

Add a Comment

(required)  
(optional)
(required)  
Remember Me?
Devlicio.us