First time here? You are looking at the most recent posts. You may also want to check out older archives or the tag cloud. Please leave a comment, ask a question and consider subscribing to the latest posts via RSS. Thank you for visiting! (hide this)

When you run a test suite, Visual Studio shows the results in a grid: the passing ones with the green icon and the failing one with the red icon.

By default, if you double click on the line with the test, Visual Studio shows the details of the test, with the stack trace and the details of the exception. If you right click on the line and you select “Open Test” you will go to the test case, on the line that caused the error.

RightMenuClickToGoToTest

But if you follow a TDD approach, you want to go straight the test with just one single click. Visual Studio can be configured to do this: just go to Tools>Options>Test Tools>Test Execution and flag the option “Double-clicking on Failed …”

DoubleClickToGoToTest

It took me a while to find it out, so I thought to share it.

HTH

posted on Thursday, November 27, 2008 4:23 PM

Comments on this entry:

# re: MSTest Tip: Double click to go to failing test

Left by David at 12/2/2008 11:45 PM

Thank you! This has been frustrating me for months. I can't for the life of me understand why that "option" wasn't the default behavior.

# re: MSTest Tip: Double click to go to failing test

Left by Simone at 12/3/2008 12:35 AM

Glad I helped :)
It will be the default in VS2010

# re: MSTest Tip: Double click to go to failing test

Left by Gerardo Contijoch at 12/10/2008 12:13 AM

This fixes one of the most annoying things in Visual Studio! Thank you!

# re: MSTest Tip: Double click to go to failing test

Left by Jason Morse at 12/30/2008 6:09 AM

Just today I was getting frustrated with this very thing. Thanks!!

Comments have been closed on this topic.