Execute only one unit test while debugging in Visual Studio 2008

后端 未结 6 1095
梦毁少年i
梦毁少年i 2020-12-29 21:09

Is there a way to select which TestMethods you want to execute in Visual Studio 2008 Unit Test project while debugging? I want to debug one particular test without having m

6条回答
  •  旧巷少年郎
    2020-12-29 21:13

    CTRL-R + T = Run test in context. This can easily be triggered inside a test.
    CTRL-R + A = Run all tests
    CTRL-R + C = Run all tests in class
    CTRL-R + N = Run all tests in namespace
    CTRL-R + F = Run all checked tests (good for rerunning al failing tests)

    CTRL-R + CTRL-T = Debug test in context, ie. it also attaches debugger
    This also works for all other combinations.

提交回复
热议问题