Debugging your own Visual Studio test project

I am using Visual Studio 2015 Native Test Project to test my project in C ++. Is there a way to see the order in which tests are run when debugging tests? Or any detailed debugging information?

I would like to use Visual Studio for continuous integration, but there are some problems with my tests. It always crashes on the VSO server. I tried to start it manually from the console on my computer, and it works fine. But when I run it in debug mode in Visual Studio on my local machine, there are some random glitches with the test runner. This excludes

The DisconnectedContext Remote Debugging Assistant found a problem in C: \ Program Files (x86) \ Microsoft Visual Studio 14.0 \ Common7 \ IDE \ CommonExtensions \ Microsoft \ TestWindow \ TE.ProcessHost.Managed.exe '.

RuntimeCallableWrapper is disconnected from its resources

HRESULT: 0x80010108 (RPC_E_DISCONNECTED)

the problem is that this exception is rather random, and I think it depends on the order of the tests. When I run all the tests one by one, this is normal, no exceptions are raised. I am really desperate to debug it :(

+5
source share

Source: https://habr.com/ru/post/1238249/


All Articles