Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-468672: MSTest: test marked with [Workitem(), Workitem()] cannot be run as inconclusive

$
0
0
Reporter Angelina Elycheva (Angelina.Elycheva) Angelina Elycheva (Angelina.Elycheva)
Created Mar 14, 2018 12:58:05 AM
Updated Apr 9, 2018 4:04:16 PM
Resolved Apr 9, 2018 4:04:16 PM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Show-stopper
State Fixed
Type Bug
Fix version 2018.1.1
Affected versions No Affected versions
Fixed In Version ReSharper 2018.1 RTM
VsVersion All Versions
1. Create new MSTest project
2. Add [Workitem(1), Workitem(2)] to the top of test case

Result: test cannot be run as inconclusive
Unable to process test-case <UnitTestProject2.UnitTest1.TestMethod1>. Test-case dump: Properties: MSTestDiscoverer.TestClassName = UnitTestProject2.UnitTest1 TestObject.Traits = System.Collections.Generic.KeyValuePair`2[System.String,System.String][] TestCase.CodeFilePath = C:\Users\angelina.elycheva\source\repos\UnitTestProject2\UnitTestProject2\UnitTest1.cs TestCase.DisplayName = TestMethod1 TestCase.ExecutorUri = executor://mstestadapter/v2 TestCase.FullyQualifiedName = UnitTestProject2.UnitTest1.TestMethod1 TestCase.Id = 98c9151d-1023-52eb-4a3a-91de0b1a68df TestCase.LineNumber = 12 TestCase.Source = C:\Users\angelina.elycheva\source\repos\UnitTestProject2\UnitTestProject2\bin\Debug\UnitTestProject2.dll Traits: WorkItem = 1 WorkItem = 2 An item with the same key has already been added.

--- EXCEPTION #1/2 [ArgumentException]
Message = “An item with the same key has already been added.”
ExceptionPath = Root.InnerException
ClassName = System.ArgumentException
HResult = E_INVALIDARG=COR_E_ARGUMENT=80070057
Source = mscorlib
StackTraceString = “
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.MsTestDiscoveryProtocol.OnTestFound(TestCase test)


--- Outer ---

--- EXCEPTION #2/2 [LoggerException]
Message = “
Unable to process test-case <UnitTestProject2.UnitTest1.TestMethod1>.
Test-case dump: Properties:
MSTestDiscoverer.TestClassName = UnitTestProject2.UnitTest1
TestObject.Traits = System.Collections.Generic.KeyValuePair`2[System.String,System.String][]
TestCase.CodeFilePath = C:\Users\angelina.elycheva\source\repos\UnitTestProject2\UnitTestProject2\UnitTest1.cs
TestCase.DisplayName = TestMethod1
TestCase.ExecutorUri = executor://mstestadapter/v2
TestCase.FullyQualifiedName = UnitTestProject2.UnitTest1.TestMethod1
TestCase.Id = 98c9151d-1023-52eb-4a3a-91de0b1a68df
TestCase.LineNumber = 12
TestCase.Source = C:\Users\angelina.elycheva\source\repos\UnitTestProject2\UnitTestProject2\bin\Debug\UnitTestProject2.dll
Traits:
WorkItem = 1
WorkItem = 2
An item with the same key has already been added.

ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = <NULL>
Data.SccRevisionShell = “<there are no packages matching the criteria>”
Data.HostProductInfo = “JetBrains ReSharper Ultimate 2018.1 EAP 2 Build 112.0.20180306.121807-eap02”
Data.SubProducts.#0 = “JetBrains ReSharper C++ 2018.1 EAP 2 Build 2018.1.20180306.123910-eap02”
Data.SubProducts.#1 = “JetBrains TeamCity Add-in 2018.1 EAP 2 Build 2018.1.20180306.122901-eap02”
Data.SubProducts.#2 = “JetBrains ReSharper 2018.1 EAP 2 Build 2018.1.20180306.122857-eap02”
Data.SccRevisionEnv = “
Platform\Core\Shell,
Platform\VisualStudio:
    git::refs/heads/wave12-eap2-take2

Data.VsVersion = 15.5.27130.2027
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
at JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.MsTestDiscoveryProtocol.OnTestFound(TestCase test)
at Appccelerate.StateMachine.Machine.ActionHolders.ArgumentActionHolder`1.Execute(Object argument)
at Appccelerate.StateMachine.Machine.Transitions.Transition`2.PerformActions(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 JetBrains.ReSharper.UnitTesting.MSTest.Provider.Execution.Wcf.TestRunnerServiceClient.DiscoveryComplete(Int64 totalTests, IEnumerable`1 lastChunk, Boolean isAborted)
at SyncInvokeDiscoveryComplete(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)

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>