开发者

Debugging code that's being tested in Visual Studio 2010

开发者 https://www.devze.com 2023-01-10 06:21 出处:网络
I am having some problems with a given test, that I\'d like to debug the code that is being tested, while the test runs.

I am having some problems with a given test, that I'd like to debug the code that is being tested, while the test runs.

Is this possible?

If yes, how can I just debug this one test? I can only see options for running or the whole solution, or the whole set of tests in the 开发者_开发百科current context or all impacted tests. I'd like to just run this one test, if possible!

I'm running Visual Studio 2010.


Put a breakpoint in the test and run the test with debug - use the test explorer to select just that test and "run selected".

See this MSDN page (How to: Run Automated Tests from Microsoft Visual Studio).

0

精彩评论

暂无评论...
验证码 换一张
取 消