Test Driven Development and Keybindings

22 12 2008

For those that practice Test Driven Development (TDD) here’s a quick reminder about keybindings in Visual Studio 2008 that will make your life easier:

  • Run all tests in the solution – Ctrl+R, A
  • Run tests in the current class – Ctrl+R, C
  • Run tests in the current context – Ctrl+R, T
  • Run tests in the current namespace – Ctrl+R, N

There is also a variant which debugs the tests, to use this variant hold down Ctrl when pressing the second key in the chord.

I also like to bind Ctrl+N, T to Project.AddNewTest and Ctrl+N, U to Project.AddUnitTest so I can quickly add tests to the current test project.


Actions

Information

One response

29 12 2008
Team System News

VSTS Links – 12/29/2008…

Maor David on Visual Studio 2010 Lab Management Martin Woodward on New Visual Studio 2010 Video Podcast……

Leave a comment