Debugging Nunit Tests Inconclusive: Test not run
I am trying to debug some tests and they are appearing as inconclusive. Running the test is fine, only happens when I debug the test. I tried different versions of Resharper and different projects and the problem persists. I tried deleting the MSBuild background applications and restarting my computer and it still persists.
Resharper version: 2024.3.7
Visual Studio 2022
--- EXCEPTION #1/3 [UnknownExitCodeException]
Message = “Process C:\Users\plam\AppData\Local\JetBrains\Installations\ReSharperPlatformVs17_b28ecb33\TestRunner\net472\ReSharperTestRunner64.exe:16188 exited with code '0'.”
ExceptionPath = Root.InnerException.InnerException
ClassName = JetBrains.ReSharper.UnitTestFramework.Common.Exceptions.UnknownExitCodeException
HResult = COR_E_EXCEPTION=80131500
--- Outer ---
--- EXCEPTION #2/3 [ProcessExitedUnexpectedlyException]
Message = “Test runner agent exited unexpectedly”
InnerException = “Exception #1 at Root.InnerException.InnerException”
StackTraceString = “
at JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.Activation.TestRunnerAgent.AnalyseExitCode(IPreparedProcessWithCachedOutput process) in AnalyseExitCode.il:line IL_00BD mvid 6F31
at JetBrains.ReSharper.UnitTestFramework.Common.Extensions.TaskExtensions.<ThrowIf>d__10`2.MoveNext() in ThrowIf.il:line IL_0000 mvid 6F31 or ThrowIf.il:line IL_00B7 mvid 6F31
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() in Throw.il:line IL_000C mvid 620F
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) in HandleNonSuccessAndDebuggerNotification.il:line IL_0028 mvid 620F
at JetBrains.ReSharper.UnitTestFramework.Common.Extensions.TaskExtensions.<ThrowIf>d__10`2.MoveNext() in ThrowIf.il:line IL_0000 mvid 6F31 or ThrowIf.il:line IL_00B7 mvid 6F31
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() in Throw.il:line IL_000C mvid 620F
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) in HandleNonSuccessAndDebuggerNotification.il:line IL_0028 mvid 620F
at JetBrains.ReSharper.UnitTestFramework.Common.Extensions.TaskExtensions.<CancelIf>d__16`1.MoveNext() in CancelIf.il:line IL_0000 mvid 6F31
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() in Throw.il:line IL_000C mvid 620F
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) in HandleNonSuccessAndDebuggerNotification.il:line IL_0028 mvid 620F
at JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.Activation.TemporaryTestRunnerAgentInvoker.<StartTestRunnerAgent>d__2.MoveNext() in StartTestRunnerAgent.il:line IL_03EB mvid 6F31
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() in Throw.il:line IL_000C mvid 620F
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) in HandleNonSuccessAndDebuggerNotification.il:line IL_0028 mvid 620F
at JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.TestRunnerAgentManager.<GetExecutionAgent>d__3.MoveNext() in GetExecutionAgent.il:line IL_0083 mvid 6F31
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() in Throw.il:line IL_000C mvid 620F
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) in HandleNonSuccessAndDebuggerNotification.il:line IL_0028 mvid 620F
at JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.TestRunnerRunStrategy.<StartTestRunner>d__17.MoveNext() in StartTestRunner.il:line IL_008F mvid 6F31
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() in Throw.il:line IL_000C mvid 620F
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) in HandleNonSuccessAndDebuggerNotification.il:line IL_0028 mvid 620F
at JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.TestRunnerRunStrategy.<Run>d__14.MoveNext() in Run.il:line IL_013D mvid 6F31
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() in Throw.il:line IL_000C mvid 620F
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) in HandleNonSuccessAndDebuggerNotification.il:line IL_0028 mvid 620F
at JetBrains.ReSharper.UnitTestFramework.Execution.Launch.UnitTestRun.<StartCore>d__37.MoveNext() in StartCore.il:line IL_01E7 mvid 6F31 or StartCore.il:line IL_03B3 mvid 6F31
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() in Throw.il:line IL_000C mvid 620F
at JetBrains.Util.Special.GeneralUtil.WithNotNull[T](T item, Action`1 F) in WithNotNull.il:line IL_001D mvid 6007
at JetBrains.ReSharper.UnitTestFramework.Execution.Launch.UnitTestRun.<StartCore>d__37.MoveNext() in StartCore.il:line IL_01E7 mvid 6F31 or StartCore.il:line IL_03B3 mvid 6F31
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() in Throw.il:line IL_000C mvid 620F
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) in HandleNonSuccessAndDebuggerNotification.il:line IL_0028 mvid 620F
at JetBrains.ReSharper.UnitTestFramework.Execution.Launch.UnitTestRun.<Start>d__36.MoveNext() in Start.il:line IL_0182 mvid 6F31
”
ExceptionPath = Root.InnerException
ClassName = JetBrains.ReSharper.UnitTestFramework.Common.Exceptions.ProcessExitedUnexpectedlyException
HResult = COR_E_EXCEPTION=80131500
Source = JetBrains.ReSharper.UnitTestFramework
--- Outer ---
--- EXCEPTION #3/3 [LoggerException]
Message = “Test runner agent exited unexpectedly”
InnerException = “Exception #2 at Root.InnerException”
StackTraceString = “
at JetBrains.Util.ILoggerEx.LogException(ILogger logger, LoggingLevel level, Exception exception, ExceptionOrigin exceptionOrigin, String comment) in LogException.il:line IL_0025 mvid 6007
at JetBrains.Util.ILoggerEx.Error(ILogger logger, Exception exception, ExceptionOrigin origin, String comment) in Error.il:line IL_000A mvid 6007
at JetBrains.ReSharper.UnitTestFramework.Execution.Launch.UnitTestRun.<Start>d__36.MoveNext() in Start.il:line IL_0182 mvid 6F31
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) in RunInternal.il:line IL_0079 mvid 620F
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) in Run.il:line IL_0009 mvid 620F
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run() in Run.il:line IL_0024 mvid 620F
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask) in RunOrScheduleAction.il:line IL_001C mvid 620F
at System.Threading.Tasks.Task.FinishContinuations() in FinishContinuations.il:line IL_0085 mvid 620F or FinishContinuations.il:line IL_0099 mvid 620F
at System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted) in Finish.il:line IL_0085 mvid 620F
at System.Threading.Tasks.Task`1.TrySetException(Object exceptionObject) in TrySetException.il:line IL_002A mvid 620F
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception) in SetException.il:line IL_0026 mvid 620F or SetException.il:line IL_0029 mvid 620F
at JetBrains.ReSharper.UnitTestFramework.Execution.Launch.UnitTestRun.<StartCore>d__37.MoveNext() in StartCore.il:line IL_03B3 mvid 6F31
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) in RunInternal.il:line IL_0079 mvid 620F
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) in Run.il:line IL_0009 mvid 620F
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run() in Run.il:line IL_0024 mvid 620F
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask) in RunOrScheduleAction.il:line IL_001C mvid 620F
at System.Threading.Tasks.Task.FinishContinuations() in FinishContinuations.il:line IL_0085 mvid 620F or FinishContinuations.il:line IL_0099 mvid 620F
at System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted) in Finish.il:line IL_0085 mvid 620F
at System.Threading.Tasks.Task`1.TrySetException(Object exceptionObject) in TrySetException.il:line IL_002A mvid 620F
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception) in SetException.il:line IL_0026 mvid 620F or SetException.il:line IL_0029 mvid 620F
at JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.TestRunnerRunStrategy.<Run>d__14.MoveNext() in Run.il:line IL_013D mvid 6F31
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) in RunInternal.il:line IL_0079 mvid 620F
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) in Run.il:line IL_0009 mvid 620F
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run() in Run.il:line IL_0024 mvid 620F
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask) in RunOrScheduleAction.il:line IL_001C mvid 620F
at System.Threading.Tasks.Task.FinishContinuations() in FinishContinuations.il:line IL_0085 mvid 620F or FinishContinuations.il:line IL_0099 mvid 620F
at System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted) in Finish.il:line IL_0085 mvid 620F
at System.Threading.Tasks.Task`1.TrySetException(Object exceptionObject) in TrySetException.il:line IL_002A mvid 620F
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception) in SetException.il:line IL_0026 mvid 620F or SetException.il:line IL_0029 mvid 620F
at JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.TestRunnerRunStrategy.<StartTestRunner>d__17.MoveNext() in StartTestRunner.il:line IL_008F mvid 6F31
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) in RunInternal.il:line IL_0079 mvid 620F
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) in Run.il:line IL_0009 mvid 620F
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run() in Run.il:line IL_0024 mvid 620F
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask) in RunOrScheduleAction.il:line IL_001C mvid 620F
at System.Threading.Tasks.Task.FinishContinuations() in FinishContinuations.il:line IL_0085 mvid 620F or FinishContinuations.il:line IL_0099 mvid 620F
at System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted) in Finish.il:line IL_0085 mvid 620F
at System.Threading.Tasks.Task`1.TrySetException(Object exceptionObject) in TrySetException.il:line IL_002A mvid 620F
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception) in SetException.il:line IL_0026 mvid 620F or SetException.il:line IL_0029 mvid 620F
at JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.TestRunnerAgentManager.<GetExecutionAgent>d__3.MoveNext() in GetExecutionAgent.il:line IL_0083 mvid 6F31
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) in RunInternal.il:line IL_0079 mvid 620F
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) in Run.il:line IL_0009 mvid 620F
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run() in Run.il:line IL_0024 mvid 620F
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask) in RunOrScheduleAction.il:line IL_001C mvid 620F
at System.Threading.Tasks.Task.FinishContinuations() in FinishContinuations.il:line IL_0085 mvid 620F or FinishContinuations.il:line IL_0099 mvid 620F
at System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted) in Finish.il:line IL_0085 mvid 620F
at System.Threading.Tasks.Task`1.TrySetException(Object exceptionObject) in TrySetException.il:line IL_002A mvid 620F
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception) in SetException.il:line IL_0026 mvid 620F or SetException.il:line IL_0029 mvid 620F
at JetBrains.ReSharper.UnitTestFramework.Execution.TestRunner.Activation.TemporaryTestRunnerAgentInvoker.<StartTestRunnerAgent>d__2.MoveNext() in StartTestRunnerAgent.il:line IL_03A2 mvid 6F31
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) in RunInternal.il:line IL_0079 mvid 620F
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) in Run.il:line IL_0009 mvid 620F
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run() in Run.il:line IL_0024 mvid 620F
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask) in RunOrScheduleAction.il:line IL_001C mvid 620F
at System.Threading.Tasks.Task.FinishContinuations() in FinishContinuations.il:line IL_0085 mvid 620F or FinishContinuations.il:line IL_0099 mvid 620F
at System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted) in Finish.il:line IL_0085 mvid 620F
at System.Threading.Tasks.Task`1.TrySetException(Object exceptionObject) in TrySetException.il:line IL_002A mvid 620F
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception) in SetException.il:line IL_0026 mvid 620F or SetException.il:line IL_0029 mvid 620F
at JetBrains.ReSharper.UnitTestFramework.Common.Extensions.TaskExtensions.<CancelIf>d__16`1.MoveNext() in CancelIf.il:line IL_0000 mvid 6F31
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) in RunInternal.il:line IL_0079 mvid 620F
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) in Run.il:line IL_0009 mvid 620F
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run() in Run.il:line IL_0024 mvid 620F
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask) in RunOrScheduleAction.il:line IL_001C mvid 620F
at System.Threading.Tasks.Task.FinishContinuations() in FinishContinuations.il:line IL_0085 mvid 620F or FinishContinuations.il:line IL_0099 mvid 620F
at System.Threading.Tasks.Task`1.TrySetResult(TResult result) in TrySetResult.il:line IL_0055 mvid 620F
at System.Threading.Tasks.TaskFactory.CompleteOnInvokePromise.Invoke(Task completingTask) in Invoke.il:line IL_004A mvid 620F
at System.Threading.Tasks.Task.FinishContinuations() in FinishContinuations.il:line IL_0085 mvid 620F or FinishContinuations.il:line IL_0099 mvid 620F
at System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted) in Finish.il:line IL_0085 mvid 620F
at System.Threading.Tasks.Task`1.TrySetException(Object exceptionObject) in TrySetException.il:line IL_002A mvid 620F
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception) in SetException.il:line IL_0026 mvid 620F or SetException.il:line IL_0029 mvid 620F
at JetBrains.ReSharper.UnitTestFramework.Common.Extensions.TaskExtensions.<ThrowIf>d__10`2.MoveNext() in ThrowIf.il:line IL_0000 mvid 6F31 or ThrowIf.il:line IL_00B7 mvid 6F31
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) in RunInternal.il:line IL_0079 mvid 620F
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) in Run.il:line IL_0009 mvid 620F
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run() in Run.il:line IL_0024 mvid 620F
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask) in RunOrScheduleAction.il:line IL_001C mvid 620F
at System.Threading.Tasks.Task.FinishContinuations() in FinishContinuations.il:line IL_0085 mvid 620F or FinishContinuations.il:line IL_0099 mvid 620F
at System.Threading.Tasks.Task`1.TrySetResult(TResult result) in TrySetResult.il:line IL_0055 mvid 620F
at System.Threading.Tasks.TaskFactory.CompleteOnInvokePromise.Invoke(Task completingTask) in Invoke.il:line IL_004A mvid 620F
at System.Threading.Tasks.Task.FinishContinuations() in FinishContinuations.il:line IL_0085 mvid 620F or FinishContinuations.il:line IL_0099 mvid 620F
at System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted) in Finish.il:line IL_0085 mvid 620F
at System.Threading.Tasks.Task`1.TrySetException(Object exceptionObject) in TrySetException.il:line IL_002A mvid 620F
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception) in SetException.il:line IL_0026 mvid 620F or SetException.il:line IL_0029 mvid 620F
at JetBrains.ReSharper.UnitTestFramework.Common.Extensions.TaskExtensions.<ThrowIf>d__10`2.MoveNext() in ThrowIf.il:line IL_0000 mvid 6F31 or ThrowIf.il:line IL_00B7 mvid 6F31
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) in RunInternal.il:line IL_0079 mvid 620F
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) in Run.il:line IL_0009 mvid 620F
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run() in Run.il:line IL_0024 mvid 620F
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask) in RunOrScheduleAction.il:line IL_001C mvid 620F
at System.Threading.Tasks.Task.FinishContinuations() in FinishContinuations.il:line IL_0085 mvid 620F or FinishContinuations.il:line IL_0099 mvid 620F
at System.Threading.Tasks.Task`1.TrySetResult(TResult result) in TrySetResult.il:line IL_0055 mvid 620F
at System.Threading.Tasks.TaskFactory.CompleteOnInvokePromise.Invoke(Task completingTask) in Invoke.il:line IL_004A mvid 620F
at System.Threading.Tasks.Task.FinishContinuations() in FinishContinuations.il:line IL_0085 mvid 620F or FinishContinuations.il:line IL_0099 mvid 620F
at System.Threading.Tasks.Task`1.TrySetResult(TResult result) in TrySetResult.il:line IL_0055 mvid 620F
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult(TResult result) in SetResult.il:line IL_002C mvid 620F
at JetBrains.Util.ProcessExtensions.<WaitForExitAsync>d__2.MoveNext() in WaitForExitAsync.il:line IL_0198 mvid AADD
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) in RunInternal.il:line IL_0079 mvid 620F
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) in Run.il:line IL_0009 mvid 620F
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run() in Run.il:line IL_0024 mvid 620F
at System.Threading.ThreadPoolWorkQueue.Dispatch() in Dispatch.il:line IL_00A4 mvid 620F
”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
HResult = COR_E_APPLICATION=80131600
Please sign in to leave a comment.
The issue and its solution are described here: SUPPORT-A-1291 Debugging tests appearing as 'Inconclusive': “Test runner agent exited unexpectedly Process ReSharperTestRunner64.exe exited with code '0'”.