How to prevent Visual Studio from killing any process after test execution

338 views Asked by At

I am using Visual Studio 2012 MSTest framework with Silk4NET plug in. Every time when a test case finishes running, the Application Under Test is killed. This is REALLY annoying because this makes inspection harder in that I have to re-run the test and have to manually stop the test code to investigate the issue. Does anybody know if I can disable this feature in VS where it kills everything after test execution? Thank you!

1

There are 1 answers

2
MedusaMetropolis On

You need to add a line to the test that sets CloseOnPlaybackCleanup flag to false:

browserWindowInstance.CloseOnPlaybackCleanup = false;

This flag was added in Visual Studio 2010 SP1. Here is an MSDN Blog post.