How can I find out which test method in a batch of

2019-09-21 02:19发布

问题:

In the Test Explorer window of Visual Studio 2015 for C#, I select all the 360 test methods in my solution, and choose "Run Selected Tests". But not all of them are executed, as indicated by the Output window:

------ Run test started ------

The active Test Run was aborted because the execution process exited unexpectedly. To investigate further, enable local crash dumps either at the machine level or for process te.processhost.managed.exe. Go to more details: http://go.microsoft.com/fwlink/?linkid=232477

========== Run test finished: 188 run (0:00:12.7254721) ==========

How can I find out which test method fails to run, narrow the culprit test method down? Thanks.

回答1:

Probably not the most subtle way to do it, but you could comment your tests one by one, and see at which point your run stops failing.