I’m working on a pretty sizable suite of tests for some code I’m writing (in Visual Studio 2012). For the most part, running the unit tests is no big deal. But I’m also including a lot of integration tests which have more external infrastructure dependencies. The number of tests, combined with re-setting the infrastructure dependencies between tests, has resulting in a rather lengthy test run for the full suite (around 45 minutes at the moment).
Running the tests is no big deal. Unit tests will be run on check-in, integration tests nightly. However, I’m running into an issue when trying to analyze code coverage for all of the tests. No code coverage results are created, and the output window says the following:
This request operation sent to net.pipe://megara/vstest.discoveryengine/14108 did not receive a reply within the configured timeout (00:30:00). The time allotted to this operation may have been a portion of a longer timeout. This may be because the service is still processing the operation or because the service was unable to send a reply message. Please consider increasing the operation timeout (by casting the channel/proxy to IContextChannel and setting the OperationTimeout property) and ensure that the service is able to connect to the client.
I’m not sure where it’s directing me here. I don’t use any iContextChannel for anything, all of the test-running is built in to Visual Studio. So I don’t really know where/how I can increase any kind of timeout. Does anybody know where I should look?
Try changing the time-out values in your solution
.testsettingsfile.If you don’t have one, you can add it to the solution by using the
right-click on solution -> Add New Item -> TestSettingsmenu. In there you can do time-outs on individual tests (default is 30 minutes), or set the timeout for an entire test run.It’s not clear if this is the root cause or not, but it is worth ruling out.