Does dotCover support MSTest?

I have some problem with starting dotCover on MSTest. I use ReSharper as test runner tool.
Environment:
- VS 2008;
- ReSharper 5.0.1659.36;
- dotCover 1.0.58.9;

When I attempt to run covering, I've got error message:

[Installed ReSharper: ReSharper 5 Version=5.0.1659.36, Built=2010-04-13T02:19:06]
Client controller exception: Error in the application. (MSTest)

--- EXCEPTION #1/1 [LoggerException]
Message = “Client controller exception: Error in the application. (MSTest)”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.LastExtension = cs
Data.ProjectTypeGuids.#0 = 3ac096d0-a1c2-e12c-1390-a8335801fdab
Data.ProjectTypeGuids.#1 = fae04ec0-301f-11d3-bf4b-00c04f79efbc
Data.VsVersion = 9.0.21022.8
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
  at JetBrains.dotCover.RsPlugin.CoverageTaskRunnerHostController.LogError(String message) in c:\BuildAgent\work\619db7e4c7376c5e\RsPlugins\Src\RsPlugin.5.0\Src\CoverageTaskRunnerHostController.cs:line 101
     at JetBrains.Profiler.RsPluginBase.ProfilerTaskRunnerHostControllerBase`1.ClientMessage(String message) in c:\BuildAgent\work\619db7e4c7376c5e\Profiler\RsPlugins\Src\RsPluginBase.5.0\Src\ProfilerTaskRunnerHostControllerBase.cs:line 72
     at JetBrains.ReSharper.UnitTestExplorer.UnitTestRun.ClientControllerMessage(String message)
     at JetBrains.ReSharper.UnitTestFramework.UnitTestServer.ClientMessage(String runId, String message)
     at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
     at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
     at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)
     at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
     at System.Runtime.Remoting.Messaging.ServerObjectTerminatorSink.SyncProcessMessage(IMessage reqMsg)
     at System.Runtime.Remoting.Messaging.ServerContextTerminatorSink.SyncProcessMessage(IMessage reqMsg)
     at System.Runtime.Remoting.Channels.CrossContextChannel.SyncProcessMessageCallback(Object[] args)
     at System.Runtime.Remoting.Channels.ChannelServices.DispatchMessage(IServerChannelSinkStack sinkStack, IMessage msg, IMessage& replyMsg)
     at System.Runtime.Remoting.Channels.DispatchChannelSink.ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders, Stream& responseStream)
     at System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders, Stream& responseStream)
     at System.Runtime.Remoting.Channels.Ipc.IpcServerTransportSink.ServiceRequest(Object state)
     at System.Runtime.Remoting.Channels.SocketHandler.ProcessRequestNow()
     at System.Runtime.Remoting.Channels.RequestQueue.ProcessNextRequest(SocketHandler sh)
     at System.Runtime.Remoting.Channels.SocketHandler.BeginReadMessageCallback(IAsyncResult ar)
     at System.Runtime.Remoting.Channels.Ipc.IpcPort.AsyncFSCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOverlapped)
     at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)

1 comment

Hello Denis,
Do you use code coverage from Microsoft?
If yes, try to turn it off, because in this case MSTest runs tests in a special manner, what makes it impossible for dotCover to recieve required info.

0

Please sign in to leave a comment.