-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pass multiple errors #4054
Pass multiple errors #4054
Conversation
@@ -80,13 +80,19 @@ internal static class FailedTestResultMessageFieldsId | |||
public const ushort State = 3; | |||
public const ushort Duration = 4; | |||
public const ushort Reason = 5; | |||
public const ushort ErrorMessage = 6; | |||
public const ushort ErrorStackTrace = 7; | |||
public const ushort ExceptionMessageList = 6; | |||
public const ushort StandardOutput = 8; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are missing the 7 value here.
case FailedTestResultMessageFieldsId.ErrorMessage: | ||
errorMessage = ReadStringValue(stream, fieldSize); | ||
break; | ||
case FailedTestResultMessageFieldsId.ExceptionMessageList: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please extract this as a separate method.
Merging this as agreed with Mariam so she has easier time using my changes, will address the refactorings in separate PR/ |
Allow passing multiple errors to dotnet test, fix code to handle multiple errors without relying on Exception type that we won't serialize.
Fix discovery in dotnet test, and report exit codes and outputs when exe fails so we have more info in dotnet test.