Rider and VS test runner - value cannot be null task in TestOutputMessage..ctor
See original GitHub issueI took the latest since this fix (https://github.com/machine/machine.specifications/issues/432) and I get the this error in both VS and Rider:
2021.05.03 13:34:15.127 ERROR TestRunner: TestExecutionSink System.ArgumentNullException: Value cannot be null. Parameter name: task at JetBrains.ReSharper.TestRunner.Abstractions.Objects.TestOutputMessage..ctor(RemoteTask task, String text, TestOutputType outputType) in C:\BuildAgent\work\1b668fe37ef92293\ReSharperTestRunner\src\TestRunner.Abstractions\Objects\Server\TestOutputMessage.cs:line 16 at JetBrains.ReSharper.TestRunner.Implementation.TestExecutionSink.TestOutput(RemoteTask task, String text, TestOutputType outputType) in C:\BuildAgent\work\1b668fe37ef92293\ReSharperTestRunner\src\TestRunner.Merged\Implementation\UnitTestRemoteAgent.cs:line 261
--- EXCEPTION #1/1 [LoggerException]
Message = “
TestRunner: TestExecutionSink System.ArgumentNullException: Value cannot be null.
Parameter name: task
at JetBrains.ReSharper.TestRunner.Abstractions.Objects.TestOutputMessage..ctor(RemoteTask task, String text, TestOutputType outputType) in C:\BuildAgent\work\1b668fe37ef92293\ReSharperTestRunner\src\TestRunner.Abstractions\Objects\Server\TestOutputMessage.cs:line 16
at JetBrains.ReSharper.TestRunner.Implementation.TestExecutionSink.TestOutput(RemoteTask task, String text, TestOutputType outputType) in C:\BuildAgent\work\1b668fe37ef92293\ReSharperTestRunner\src\TestRunner.Merged\Implementation\UnitTestRemoteAgent.cs:line 261
”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
at JetBrains.Util.ILoggerEx.LogMessage(ILogger this, LoggingLevel level, String message)
at JetBrains.ReSharper.UnitTestFramework.TestRunner.Handlers.TestRunnerAgentLoggingHandler.Execute(LogMessage message)
at lambda_method(Closure , IAutoRegisterInProtocol )
at JetBrains.ReSharper.UnitTestFramework.TestRunner.ServerEndpoint.<>c__DisplayClass9_2.<TryRegisterHandler>b__3()
at System.Threading.Tasks.Task`1.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.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
”
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
Value cannot be null. Parameter name: solution : RIDER-36432
Message = “Value cannot be null.” ExceptionPath = Root.InnerException ClassName = System.ArgumentNullException. Data.ThreadLocalDebugInfo = “Update project ...
Read more >Value cannot be null in unit test - C# - Stack Overflow
The Logger is a dependency of your OrderController and you don't want to test its functionality within a unit test for your controller....
Read more >Rider does not detect a value cannot be null with [return
Rider does not detect a value cannot be null with [return: NotNull] attribute on async methods.
Read more >CRR Test Runner - Running tests results in 'Value cannot ...
CRR Test Runner - Running tests results in 'Value cannot be null' (Parameter name: testContainer) exception; no tests are ran.
Read more >Azure Pipelines: Value cannot be null. Parameter name: key
After adding the below piece of code in azure-pipelines.yml I'm getting this error - "Value cannot be null. Parameter name: key". resources:.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is released as
v2021.1.2
. It may take up to 2 business days for Jetbrains to approve.Working on this here: https://github.com/machine/machine.specifications.runner.resharper/pull/161