Using a sample project from MSDN , I am writing a custom unit test adapter. I can debug it using an experimental instance in visual studio, set breakpoints and see the output of System.Diagnostics.Trace.WriteLine() , and all this works fine for almost all of my methods. I see evidence that it works (as in the results of test cases, I expect if I play with an error message, duration, etc.).
However, for the methods in the test runner class (based on Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter.ITestExecutor ) I did not hit the breakpoints and did not see any of my trace results. Is there a setup or something to do for this job? I am wondering if the test runtime does any kind of optimization for this class, which makes it difficult to debug.
Thank.
debugging unit-testing visual-studio-2012
Jay Carlton Jul 17 '14 at 6:59 a.m. 2014-07-17 18:59
source share