Test Driven Development and Keybindings
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.
