Thursday, September 02, 2010

MsTests–Shortcut keys

Some useful shortcut keys for use with MsTests in Visual Studio.

CTRL + R, then press A: Runs all the tests in all test projects.

CTRL + R, then press D: Runs all tests that were run in the last test run.

CTRL + R, then press F: Runs all tests in the last test run that did not pass.

CTRL + R, then press T: Runs the tests in the current scope. Scope is determined from the current position of cursor (current test method, tests in the current test class, or all tests in the namespace).

CTRL + R, then press C: This runs all the tests in the current test class.

CTRL + R, then press N: This runs all tests in the current namespace.

No comments: