Resharper Won't Debug MSTest Tests

Visual Studio 2017.3 (upgraded yesterday)

R# 2017.2 EAP 12

 

After upgrading to the latest visual studio, any time I attempt to debug an MSTest unit test, I receive "Inconclusive: Test not run".  Running a unit test seems to work as expected.

 

I started out using R# 2017.1.3 and had the same issue, I saw another poster with a similar issue and the EAP was suggested so I tried it, but it didn't solve my issue.

 

Any suggestions?

Thanks!

 

 

7
29 comments

Hello!

 

Thank you for the feedback.

The issue isn't fixed in ReSharper 2017.2 EAP 12 build but will be fixed in upcoming release.

Thank you.

0

Is there any workaround or is it impossible to debug any unit tests for any up to date version of Resharper?  That would seem to be a bit of a sticking point.

0

I've been using the Visual Studio Test Explorer.  It's kind of crappy, but it's letting me get stuff done.  Hopefully they fix this sooner than later.

0

Hello! 

 

Please install ReSharper 2017.2 EAP 13 build -   http://download.jetbrains.com/resharper/JetBrains.ReSharperUltimate.2017.2.EAP13.exe and check if the issue is still reprodcued.

Thank you.

0

Works for me, thanks!

0

Well, it sort of works.  The firs time I debug a test with an error, everything stops working.  After that, I can't run or debug further tests until I restart Visual Studio.

0

It's intermittent.  I can't quite pin down the fail criteria, but when it fails, you can no longer run or debug tests without a restart.    

0

Hello Nathan!

 

Thank you for the feedback.

Could you please specify if the issue is reproduced in a newly solution?

Please start VS using the following comand: "devenv /ReSharper.LogFile C:\log\resharper_log.txt /ReSharper.LogLevel Verbose", reproduce the issue and send log file to us? You can do it privately by 'Submit a request' form.

Thank you.

0

The same behavior for VS 15.5.2 and ReSharper 17.2.2

0

Sorry, "The same" means "won't debug". Tests are run, but in "Run" mode without debugging.

0

Yeah, unit testing is pretty badly broken for me. I just updated to 17.2.2 to be sure, but no changes. If i run all tests in a solution, only maybe a third are run, and the rest say inconclusive, test not run. If i re-run them in chunks, they will run and pass as normal. However, I can't debug any tests at all. They just run as if they were run without debugging.

0

Hello Stephen and Vsemenov!

 

Could you please install the latest R# 2017.3 EAP build - https://www.jetbrains.com/resharper/eap/ and check if the problem is still reproduced.

Thank you.

0

Frankly, things became worse - tests are not run at all with error:

2017.12.19 11:23:57.569 ERROR Transition failed: Transition from state <RunnerIsUp> on event <remote::Connected>. Cause: System.InvalidOperationException: This document already has a 'DocumentElement' node. at System.Xml.XmlDocument.IsValidChildType(XmlNodeType type) at System.Xml.XmlNode.AppendChild(XmlNode newChild) at JetBrains.Util.XmlUtil.CreateElement(XmlNode parent, String tagName) at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.MsTestExecutionProtocol.RunSettingsGenerator.AddNode(XmlNode parent, String xpath) at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.MsTestExecutionProtocol.RunSettingsGenerator.Generate(String existingRunSettingsFile) at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.MsTestExecutionProtocol.RunSettingsWithDummyDataCollectorGenerator.Generate(String existingRunSettingsFile) at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.MsTestExecutionProtocol.StartTestRun() at Appccelerate.StateMachine.Machine.ActionHolders.ArgumentLessActionHolder.Execute(Object argument) at Appccelerate.StateMachine.Machine.States.State`2.ExecuteEntryAction(IActionHolder actionHolder, ITransitionContext`2 context)

--- EXCEPTION #1/1 [LoggerException]
Message = “
Transition failed: Transition from state <RunnerIsUp> on event <remote::Connected>.
Cause: System.InvalidOperationException: This document already has a 'DocumentElement' node.
at System.Xml.XmlDocument.IsValidChildType(XmlNodeType type)
at System.Xml.XmlNode.AppendChild(XmlNode newChild)
at JetBrains.Util.XmlUtil.CreateElement(XmlNode parent, String tagName)
at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.MsTestExecutionProtocol.RunSettingsGenerator.AddNode(XmlNode parent, String xpath)
at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.MsTestExecutionProtocol.RunSettingsGenerator.Generate(String existingRunSettingsFile)
at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.MsTestExecutionProtocol.RunSettingsWithDummyDataCollectorGenerator.Generate(String existingRunSettingsFile)
at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.MsTestExecutionProtocol.StartTestRun()
at Appccelerate.StateMachine.Machine.ActionHolders.ArgumentLessActionHolder.Execute(Object argument)
at Appccelerate.StateMachine.Machine.States.State`2.ExecuteEntryAction(IActionHolder actionHolder, ITransitionContext`2 context)

ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.MsTestExecutionProtocol.<.ctor>b__10(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.PassiveStateMachine`2.ProcessQueuedEvents()
at Appccelerate.StateMachine.PassiveStateMachine`2.Execute()
at Appccelerate.StateMachine.PassiveStateMachine`2.Fire(TEvent eventId, Object eventArgument)
at Appccelerate.StateMachine.PassiveStateMachine`2.Fire(TEvent eventId)
at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.Wcf.TestExecutorServiceClient.TestConnection(IEnumerable`1 dummyTestResults)
at SyncInvokeTestConnection(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage41(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage3(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage1(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
at System.ServiceModel.Dispatcher.ChannelHandler.DispatchAndReleasePump(RequestContext request, Boolean cleanThread, OperationContext currentOperationContext)
at System.ServiceModel.Dispatcher.ChannelHandler.HandleRequest(RequestContext request, OperationContext currentOperationContext)
at System.ServiceModel.Dispatcher.ChannelHandler.AsyncMessagePump(IAsyncResult result)
at System.ServiceModel.Dispatcher.ChannelHandler.OnAsyncReceiveComplete(IAsyncResult result)
at System.Runtime.Fx.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)
at System.Runtime.AsyncResult.Complete(Boolean completedSynchronously)
at System.ServiceModel.Channels.TransportDuplexSessionChannel.TryReceiveAsyncResult.OnReceive(IAsyncResult result)
at System.Runtime.Fx.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)
at System.Runtime.AsyncResult.Complete(Boolean completedSynchronously)
at System.ServiceModel.Channels.SynchronizedMessageSource.ReceiveAsyncResult.OnReceiveComplete(Object state)
at System.ServiceModel.Channels.SessionConnectionReader.OnAsyncReadComplete(Object state)
at System.ServiceModel.Channels.StreamConnection.OnRead(IAsyncResult result)
at System.Runtime.Fx.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)
at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
at System.Net.Security.NegotiateStream.ProcessFrameBody(Int32 readBytes, Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.NegotiateStream.ReadCallback(AsyncProtocolRequest asyncRequest)
at System.Net.AsyncProtocolRequest.CompleteRequest(Int32 result)
at System.Net.FixedSizeReader.CheckCompletionBeforeNextRead(Int32 bytes)
at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult)
at System.Runtime.AsyncResult.Complete(Boolean completedSynchronously)
at System.ServiceModel.Channels.ConnectionStream.IOAsyncResult.OnAsyncIOComplete(Object state)
at System.ServiceModel.Channels.PipeConnection.OnAsyncReadComplete(Boolean haveResult, Int32 error, Int32 numBytes)
at System.ServiceModel.Channels.OverlappedContext.CompleteCallback(UInt32 error, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
at System.Runtime.Fx.IOCompletionThunk.UnhandledExceptionFrame(UInt32 error, UInt32 bytesRead, NativeOverlapped* nativeOverlapped)
at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)

 

 

 

0

Thank you for the update.

 

Is there any runsettings file specified in ReSharper | Options | Tools | Unit Testings | MsTest? If there's any could you please provide it?

Thank you.

0

<?xml version="1.0" encoding="UTF-8"?>
<TestSettings name="Local Test Run" id="d3150c10-d4cc-4886-ae86-f3556e6d0bfb" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
<Description>This is a default test run configuration for a local test run.</Description>
<Deployment>
<DeploymentItem filename="DevExpress.XtraEditors.v16.2.Design.dll" />
<DeploymentItem filename="DevExpress.RichEdit.v16.2.Core.dll" />
<DeploymentItem filename="GroupsNewRepository.xml" />
</Deployment>
<Execution hostProcessPlatform="MSIL">
<Hosts skipUnhostableTests="false" />
<Timeouts runTimeout="9000000" testTimeout="9000000" />
<TestTypeSpecific>
<WebTestRunConfiguration testTypeId="4e7599fa-5ecb-43e9-a887-cd63cf72d207">
<Browser name="Internet Explorer 7.0">
<Headers>
<Header name="User-Agent" value="Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)" />
<Header name="Accept" value="*/*" />
<Header name="Accept-Language" value="{{$IEAcceptLanguage}}" />
<Header name="Accept-Encoding" value="GZIP" />
</Headers>
</Browser>
</WebTestRunConfiguration>
<UnitTestRunConfig testTypeId="13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b">
<AssemblyResolution>
<TestDirectory useLoadContext="true" />
</AssemblyResolution>
</UnitTestRunConfig>
</TestTypeSpecific>
<AgentRule name="LocalMachineDefaultRole">
</AgentRule>
</Execution>
<Properties />
</TestSettings>

 

I removed some deployment items for brevity. If it's important I can enumerate them all.

 

0

@Vsemenov Please install the release build we published a couple of hours ago, we fixed there the following issue related to testsettings file https://youtrack.jetbrains.com/issue/RSRP-467411.

Thanks! 

0

On trying to Debug test, Debugging is starting, vstest.execution console (!) appears, and then test stops as "Inconclusive" 

Error similar to EAP:

2017.12.19 19:45:20.413 ERROR Transition failed: Transition from state <RunnerIsUp> on event <remote::Connected>. Cause: System.InvalidOperationException: This document already has a 'DocumentElement' node. at System.Xml.XmlDocument.IsValidChildType(XmlNodeType type) at System.Xml.XmlNode.AppendChild(XmlNode newChild) at JetBrains.Util.XmlUtil.CreateElement(XmlNode parent, String tagName) at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.MsTestExecutionProtocol.RunSettingsGenerator.AddNode(XmlNode parent, String xpath) at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.MsTestExecutionProtocol.RunSettingsGenerator.Generate(String existingRunSettingsFile) at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.MsTestExecutionProtocol.RunSettingsWithDummyDataCollectorGenerator.Generate(String existingRunSettingsFile) at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.MsTestExecutionProtocol.StartTestRun() at Appccelerate.StateMachine.Machine.ActionHolders.ArgumentLessActionHolder.Execute(Object argument) in C:\projects\appccelerate\repos\statemachine\source\Appccelerate.StateMachine\Machine\ActionHolders\ArgumentLessActionHolder.cs:line 37 at Appccelerate.StateMachine.Machine.States.State`2.ExecuteEntryAction(IActionHolder actionHolder, ITransitionContext`2 context) in C:\projects\appccelerate\repos\statemachine\source\Appccelerate.StateMachine\Machine\States\State.cs:line 340

--- EXCEPTION #1/1 [LoggerException]
Message = “
Transition failed: Transition from state <RunnerIsUp> on event <remote::Connected>.
Cause: System.InvalidOperationException: This document already has a 'DocumentElement' node.
at System.Xml.XmlDocument.IsValidChildType(XmlNodeType type)
at System.Xml.XmlNode.AppendChild(XmlNode newChild)
at JetBrains.Util.XmlUtil.CreateElement(XmlNode parent, String tagName)
at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.MsTestExecutionProtocol.RunSettingsGenerator.AddNode(XmlNode parent, String xpath)
at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.MsTestExecutionProtocol.RunSettingsGenerator.Generate(String existingRunSettingsFile)
at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.MsTestExecutionProtocol.RunSettingsWithDummyDataCollectorGenerator.Generate(String existingRunSettingsFile)
at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.MsTestExecutionProtocol.StartTestRun()
at Appccelerate.StateMachine.Machine.ActionHolders.ArgumentLessActionHolder.Execute(Object argument) in C:\projects\appccelerate\repos\statemachine\source\Appccelerate.StateMachine\Machine\ActionHolders\ArgumentLessActionHolder.cs:line 37
at Appccelerate.StateMachine.Machine.States.State`2.ExecuteEntryAction(IActionHolder actionHolder, ITransitionContext`2 context) in C:\projects\appccelerate\repos\statemachine\source\Appccelerate.StateMachine\Machine\States\State.cs:line 340

ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.MsTestExecutionProtocol.<.ctor>b__10(Object sender, TransitionExceptionEventArgs`2 args)
at Appccelerate.StateMachine.Machine.StateMachine`2.RaiseEvent[T](EventHandler`1 eventHandler, T arguments, ITransitionContext`2 context, Boolean raiseEventOnException) in C:\projects\appccelerate\repos\statemachine\source\Appccelerate.StateMachine\Machine\StateMachine.cs:line 404
at Appccelerate.StateMachine.Machine.StateMachine`2.OnExceptionThrown(ITransitionContext`2 context, Exception exception) in C:\projects\appccelerate\repos\statemachine\source\Appccelerate.StateMachine\Machine\StateMachine.cs:line 260
at Appccelerate.StateMachine.Machine.Contexts.TransitionContext`2.OnExceptionThrown(Exception exception) in C:\projects\appccelerate\repos\statemachine\source\Appccelerate.StateMachine\Machine\Contexts\TransitionContext.cs:line 74
at Appccelerate.StateMachine.Machine.States.State`2.HandleException(Exception exception, ITransitionContext`2 context) in C:\projects\appccelerate\repos\statemachine\source\Appccelerate.StateMachine\Machine\States\State.cs:line 307
at Appccelerate.StateMachine.Machine.States.State`2.HandleEntryActionException(ITransitionContext`2 context, Exception exception) in C:\projects\appccelerate\repos\statemachine\source\Appccelerate.StateMachine\Machine\States\State.cs:line 357
at Appccelerate.StateMachine.Machine.States.State`2.ExecuteEntryAction(IActionHolder actionHolder, ITransitionContext`2 context) in C:\projects\appccelerate\repos\statemachine\source\Appccelerate.StateMachine\Machine\States\State.cs:line 345
at Appccelerate.StateMachine.Machine.States.State`2.ExecuteEntryActions(ITransitionContext`2 context) in C:\projects\appccelerate\repos\statemachine\source\Appccelerate.StateMachine\Machine\States\State.cs:line 330
at Appccelerate.StateMachine.Machine.States.State`2.Entry(ITransitionContext`2 context) in C:\projects\appccelerate\repos\statemachine\source\Appccelerate.StateMachine\Machine\States\State.cs:line 247
at Appccelerate.StateMachine.Machine.States.State`2.EnterShallow(ITransitionContext`2 context) in C:\projects\appccelerate\repos\statemachine\source\Appccelerate.StateMachine\Machine\States\State.cs:line 285
at Appccelerate.StateMachine.Machine.States.State`2.EnterHistoryNone(ITransitionContext`2 context) in C:\projects\appccelerate\repos\statemachine\source\Appccelerate.StateMachine\Machine\States\State.cs:line 429
at Appccelerate.StateMachine.Machine.States.State`2.EnterByHistory(ITransitionContext`2 context) in C:\projects\appccelerate\repos\statemachine\source\Appccelerate.StateMachine\Machine\States\State.cs:line 263
at Appccelerate.StateMachine.Machine.Transitions.Transition`2.Fire(ITransitionContext`2 context) in C:\projects\appccelerate\repos\statemachine\source\Appccelerate.StateMachine\Machine\Transitions\Transition.cs:line 87
at Appccelerate.StateMachine.Machine.States.State`2.Fire(ITransitionContext`2 context) in C:\projects\appccelerate\repos\statemachine\source\Appccelerate.StateMachine\Machine\States\State.cs:line 222
at Appccelerate.StateMachine.Machine.StateMachine`2.Fire(TEvent eventId, Object eventArgument) in C:\projects\appccelerate\repos\statemachine\source\Appccelerate.StateMachine\Machine\StateMachine.cs:line 230
at Appccelerate.StateMachine.PassiveStateMachine`2.ProcessQueuedEvents() in C:\projects\appccelerate\repos\statemachine\source\Appccelerate.StateMachine\PassiveStateMachine.cs:line 339
at Appccelerate.StateMachine.PassiveStateMachine`2.Execute() in C:\projects\appccelerate\repos\statemachine\source\Appccelerate.StateMachine\PassiveStateMachine.cs:line 324
at Appccelerate.StateMachine.PassiveStateMachine`2.Fire(TEvent eventId, Object eventArgument) in C:\projects\appccelerate\repos\statemachine\source\Appccelerate.StateMachine\PassiveStateMachine.cs:line 177
at Appccelerate.StateMachine.PassiveStateMachine`2.Fire(TEvent eventId) in C:\projects\appccelerate\repos\statemachine\source\Appccelerate.StateMachine\PassiveStateMachine.cs:line 163
at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.Wcf.TestExecutorServiceClient.TestConnection(IEnumerable`1 dummyTestResults)
at SyncInvokeTestConnection(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage41(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage3(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage1(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
at System.ServiceModel.Dispatcher.ChannelHandler.DispatchAndReleasePump(RequestContext request, Boolean cleanThread, OperationContext currentOperationContext)
at System.ServiceModel.Dispatcher.ChannelHandler.HandleRequest(RequestContext request, OperationContext currentOperationContext)
at System.ServiceModel.Dispatcher.ChannelHandler.AsyncMessagePump(IAsyncResult result)
at System.ServiceModel.Dispatcher.ChannelHandler.OnAsyncReceiveComplete(IAsyncResult result)
at System.Runtime.Fx.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)
at System.Runtime.AsyncResult.Complete(Boolean completedSynchronously)
at System.ServiceModel.Channels.TransportDuplexSessionChannel.TryReceiveAsyncResult.OnReceive(IAsyncResult result)
at System.Runtime.Fx.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)
at System.Runtime.AsyncResult.Complete(Boolean completedSynchronously)
at System.ServiceModel.Channels.SynchronizedMessageSource.ReceiveAsyncResult.OnReceiveComplete(Object state)
at System.ServiceModel.Channels.SessionConnectionReader.OnAsyncReadComplete(Object state)
at System.ServiceModel.Channels.StreamConnection.OnRead(IAsyncResult result)
at System.Runtime.Fx.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)
at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
at System.Net.Security.NegotiateStream.ProcessFrameBody(Int32 readBytes, Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.NegotiateStream.ReadCallback(AsyncProtocolRequest asyncRequest)
at System.Net.AsyncProtocolRequest.CompleteRequest(Int32 result)
at System.Net.FixedSizeReader.CheckCompletionBeforeNextRead(Int32 bytes)
at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult)
at System.Runtime.AsyncResult.Complete(Boolean completedSynchronously)
at System.ServiceModel.Channels.ConnectionStream.IOAsyncResult.OnAsyncIOComplete(Object state)
at System.ServiceModel.Channels.PipeConnection.OnAsyncReadComplete(Boolean haveResult, Int32 error, Int32 numBytes)
at System.ServiceModel.Channels.OverlappedContext.CompleteCallback(UInt32 error, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
at System.Runtime.Fx.IOCompletionThunk.UnhandledExceptionFrame(UInt32 error, UInt32 bytesRead, NativeOverlapped* nativeOverlapped)
at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)

 

 

0

Okay, so I installed 2017.3. The first time setup ran, it said installation failed, and then pretty much all ReSharper functionality was gone. I downloaded from the main site and ran the repair, and everything is back. The good news it appears all tests are actually running now, and I can debug individual tests as well. The bad news is ShimsContext.Create() is broken with the following exception:

Microsoft.QualityTools.Testing.Fakes.UnitTestIsolation.UnitTestIsolationException: Failed to resolve profiler path from COR_PROFILER_PATH and COR_PROFILER environment variables.

I tried disabling all frameworks but MsTest, and I installed the latest VS update that was pending, but it had no effect. The same unit tests run fine from Test Explorer and pass. Let me know if you guys think it's related to the update or if it's related to the failed installation, and what to try next. Thanks.

1

Hello Vsemenov!

 

Thank you for the provided info.

Do I understand correctly that you use testrunconfig file as test settings file?

Thank you.

0

Hello Angelina! Yes, you're right. 

I've just noticed, maybe it's worth to mention: these are legacy projects from .NET 3.5 time, referencing C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\PublicAssemblies\Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll   

 

0

Hello Vsemenov!

 

Thank you for the reply.

R# doesn't support testrunconfig file as test settings file. Please use testsettings or runsettings file to run unit test with R#.

Thank you.

 

0

All works fine in R# 2017.3.1!

Thank you.

 

0

Angelina, can you take a look at my message from the 19th above? I'm still having this issue with 2017.3.1. If it should go in a new thread, just let me know. Thanks.

1

Hello Stephen!

 

Sorry for delay in responding, we've tried to reproduce the issue.

It's actually a bug, please follow the issue to get the latest updates on it - https://youtrack.jetbrains.com/issue/RSRP-467796

Thank you.

0

Awesome. Thanks, Angelina.

0

Angelina,

I don't mean to engage in thread necromancy here, but I'm encountering the same issue as Vsemenov, but we have no testrunconfig file.  We do include a reference to Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll in our unit test project.  How do I resolve this issue?  Thanks in advance!

0

Hello James!

 

Thank you for the feedback.

Could you please specify:

  • ReSharper cannot run/debug/both tests?
  • what ReSharper version you are using?
  • is the problem reproduced wuth VS test runner?

Thank you.

0

Angelina,

Thanks for getting back to me.

ReSharper will execute and debug the tests, but reports false failures based on the following error: 

Microsoft.QualityTools.Testing.Fakes.UnitTestIsolation.UnitTestIsolationException: Failed to resolve profiler path from COR_PROFILER_PATH and COR_PROFILER environment variables.
at Microsoft.QualityTools.Testing.Fakes.UnitTestIsolation.IntelliTraceInstrumentationProvider.ResolveProfilerPath()
at Microsoft.QualityTools.Testing.Fakes.UnitTestIsolation.IntelliTraceInstrumentationProvider.Initialize()
at Microsoft.QualityTools.Testing.Fakes.UnitTestIsolation.UnitTestIsolationRuntime.InitializeUnitTestIsolationInstrumentationProvider()
at Microsoft.QualityTools.Testing.Fakes.Shims.ShimRuntime.CreateContext()
at Microsoft.QualityTools.Testing.Fakes.ShimsContext.Create()

We are using ReSharper v2017.3.1.

The unit tests execute and debug normally in Visual Studio Test Runner.  The failures only appear in the ReSharper Test Runner.

Thanks in advance for any assistance you can provide.

Sincerely,

James Waslo

0

Hello James!

 

Thank you for the provided info.

It's the same problem that we discussed with Stephen in previous posts of this thread.

The issue is reported here - https://youtrack.jetbrains.com/issue/RSRP-467796

Please feel free to comment or vote for it.

Thank you.

0

Please sign in to leave a comment.