Run/Debug Test in Current Context with Visual Studio 2012

It turns out that one can right-click on the source code of any of:

  • A specific test (public void MyTest())
  • A class containing tests (public class MyTestClass)
  • A namespace containing tests (namespace My.Project.Test)

and get a context menu to either run or debug tests within each given scope. (Note: Text in Context Menu does not change)

This has proven the most useful method of selectively running tests for me.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)