You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Null reference exception
at(most right are file and lines of stack trace)
vstest.console.exe!Microsoft.VisualStudio.TestPlatform.CommandLine.Internal.ConsoleLogger.GetFormattedOutput(System.Collections.ObjectModel.Collection<Microsoft.VisualStudio.TestPlatform.ObjectModel.TestResultMessage> testMessageCollection = Count = 1) in /Users/davidkarlas/GIT/vstest/src/vstest.console/Internal/ConsoleLogger.cs:193
vstest.console.exe!Microsoft.VisualStudio.TestPlatform.CommandLine.Internal.ConsoleLogger.DisplayFullInformation(Microsoft.VisualStudio.TestPlatform.ObjectModel.TestResult result = {TestCase Failed Message: Expected: 3 But was: 4 StackTrace: at nunit24214asf.Test.TestCase () [0x00001] in <f8f163ea224243a98cc299290bc3bbab>:0 Test Messages: }) in /Users/davidkarlas/GIT/vstest/src/vstest.console/Internal/ConsoleLogger.cs:240
vstest.console.exe!Microsoft.VisualStudio.TestPlatform.CommandLine.Internal.ConsoleLogger.TestResultHandler(Microsoft.VisualStudio.TestPlatform.Common.Logging.InternalTestLoggerEvents sender = {Microsoft.VisualStudio.TestPlatform.Common.Logging.InternalTestLoggerEvents}, Microsoft.VisualStudio.TestPlatform.ObjectModel.Logging.TestResultEventArgs e = {Microsoft.VisualStudio.TestPlatform.ObjectModel.Logging.TestResultEventArgs}) in /Users/davidkarlas/GIT/vstest/src/vstest.console/Internal/ConsoleLogger.cs:332
@DavidKarlas : Can you please share the nuget package version of Nunit adapter and the target framework version of your test project.
Seems like a bug in our side and willing to have a local repro.
Description
Null reference exception
at(most right are file and lines of stack trace)
caused by response from NUnit adapter
Steps to reproduce
I just executed test that had failure and it threw exception.
Expected behavior
Either expect and handle
null
or change adapter/host(not sure which) to not sendnull
for message textActual behavior
Null reference exception happens
Environment
This happened to me while I was implementing VSTest into
VisualStudio for Mac
and debugging vstest.console.exe built from master(commit sha1 9b92161).The text was updated successfully, but these errors were encountered: