dot cover not working on win10 vs2017
Hi guys,
I recently switched from win7 to win10 and setup my dev environment there consisting of resharper ultimate 2018.1.2 and visual studio 2017 (15.7.3)
Unfortunately with this new environment dotCover doesnt seem to be working anylonger.
When I run a mstest unit test assembly using the resharper test runner it works fine, as usual, however when I run it with dotCover the test run ends inconclusive.
Test runner reports 3 errors per assembly included in the test run:
2018.06.21 14:47:00.955 WARN Code Coverage reports for 00000000-0000-0000-0000-000000000000: CodeCoverage.exe wurde nicht gefunden.
2018.06.21 14:47:00.977 ERROR Transition failed: Transition from state <Disconnected> on event <local::Connect>. One or more errors occurred. A task was canceled.
--- EXCEPTION #1/3 [TaskCanceledException]
Message = “A task was canceled.”
ExceptionPath.1 = Root.InnerException.InnerException
ExceptionPath.2 = Root.InnerException.InnerExceptions.#0
ClassName = System.Threading.Tasks.TaskCanceledException
HResult = COR_E_OPERATIONCANCELED=8013153B
--- Outer ---
--- EXCEPTION #2/3 [AggregateException]
Message = “One or more errors occurred.”
ExceptionPath = Root.InnerException
ClassName = System.AggregateException
InnerException = “Exception #1 at Root.InnerException.InnerException”
HResult = COR_E_EXCEPTION=80131500
Source = mscorlib
InnerExceptions.#0 = “Exception #1 at Root.InnerException.InnerException”
StackTraceString = “
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at System.Threading.Tasks.Task`1.get_Result()
at JetBrains.Common.UnitTesting.HostController.ProfilerTaskRunnerHostController.StartProcess(ProcessStartInfo startInfo, IUnitTestRun run, ILogger logger)
at JetBrains.ReSharper.UnitTestFramework.Launch.UnitTestLaunch.HostControllerWithLogging.StartProcess(ProcessStartInfo startInfo, IUnitTestRun run, ILogger logger)
at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.MsTestRunStrategyBase.RunProcess.Run(ProcessStartInfo startInfo, ILogger logger)
at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.MsTestExecutionProtocol.VsTestExecutionEngineInvoker.Start(VsTestRuntimeEnvironment env, ILogger logger, IDictionary`2 environmentVariables)
at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.MsTestExecutionProtocol.StartRunner()
at Appccelerate.StateMachine.Machine.ActionHolders.ArgumentLessActionHolder.Execute(Object argument)
at Appccelerate.StateMachine.Machine.States.State`2.ExecuteEntryAction(IActionHolder actionHolder, ITransitionContext`2 context)
”
--- Outer ---
--- EXCEPTION #3/3 [LoggerException]
Message = “Transition failed: Transition from state <Disconnected> on event <local::Connect>. One or more errors occurred.”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
InnerException = “Exception #2 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.MsTestExecutionProtocol.<.ctor>b__24_17(Object sender, TransitionExceptionEventArgs`2 args)
at Appccelerate.StateMachine.Machine.StateMachine`2.RaiseEvent[T](EventHandler`1 eventHandler, T arguments, ITransitionContext`2 context, Boolean raiseEventOnException)
at Appccelerate.StateMachine.Machine.StateMachine`2.OnExceptionThrown(ITransitionContext`2 context, Exception exception)
at Appccelerate.StateMachine.Machine.Contexts.TransitionContext`2.OnExceptionThrown(Exception exception)
at Appccelerate.StateMachine.Machine.States.State`2.HandleException(Exception exception, ITransitionContext`2 context)
at Appccelerate.StateMachine.Machine.States.State`2.HandleEntryActionException(ITransitionContext`2 context, Exception exception)
at Appccelerate.StateMachine.Machine.States.State`2.ExecuteEntryAction(IActionHolder actionHolder, ITransitionContext`2 context)
at Appccelerate.StateMachine.Machine.States.State`2.ExecuteEntryActions(ITransitionContext`2 context)
at Appccelerate.StateMachine.Machine.States.State`2.Entry(ITransitionContext`2 context)
at Appccelerate.StateMachine.Machine.States.State`2.EnterShallow(ITransitionContext`2 context)
at Appccelerate.StateMachine.Machine.States.State`2.EnterHistoryNone(ITransitionContext`2 context)
at Appccelerate.StateMachine.Machine.States.State`2.EnterByHistory(ITransitionContext`2 context)
at Appccelerate.StateMachine.Machine.Transitions.Transition`2.Fire(ITransitionContext`2 context)
at Appccelerate.StateMachine.Machine.States.State`2.Fire(ITransitionContext`2 context)
at Appccelerate.StateMachine.Machine.StateMachine`2.Fire(TEvent eventId, Object eventArgument)
at Appccelerate.StateMachine.ActiveStateMachine`2.ProcessEventQueue(CancellationToken cancellationToken)
at Appccelerate.StateMachine.ActiveStateMachine`2.<Start>b__32_0()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
at System.Threading.Tasks.Task.ExecutionContextCallback(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
at System.Threading.Tasks.ThreadPoolTaskScheduler.LongRunningThreadWork(Object obj)
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart(Object obj)
”
2018.06.21 14:47:00.985 ERROR System.Threading.Tasks.TaskCanceledException: A task was canceled.
2018.06.21 14:47:00.990 WARN Element psitrans.Traffic.RPI.IMSHH.UnitTests.Conditions.UtHasStationSpecialTextPermanently was left pending after its run completion.
2018.06.21 14:47:00.990 ERROR System.IO.IOException: Unable to read data from the transport connection: Eine vorhandene Verbindung wurde vom Remotehost geschlossen. ---> System.Net.Sockets.SocketException: Eine vorhandene Verbindung wurde vom Remotehost geschlossen
at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)
at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
--- End of inner exception stack trace ---
at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
at JetBrains.Profiler.Windows.RemoteApi.Impl.Version0000.RemoteProfile0000.ProcessAsyncResult(IAsyncResult asyncResult)
So it seems some connection cannot be opened. This error does not seem to be related to the unit test assembly I run. No matter which one I run it always turns out like that. If, however, I run the same on a win7 machine of a colleague it works fine. Anybody experience something like that before? Any ideas where to look or what to try? Any help is appreciated.
Best regards, Milan
Please sign in to leave a comment.
Hello, Milan,
Thank you for contacting us and sorry for the delayed reply.
Do you use a .runsettings/.testsettings file for your tests? Could you please make a screenshot of your settings on ReSharper | Options | Tools | Unit Testing | MsTest page?
dotCover couldn't work simultaneously with Visual Studio own code coverage, and the error looks like you are using some .testsettings/.runsettings file with Visual Studio coverage enabled in it.
Hi Fedor,
looks like u were completely right. After switching to the VS UI settings its working fine again. Thanks a lot.
Best regards, Milan