Skip to content

Pass multiple errors - #4054

Merged
Jakub Jareš (nohwnd) merged 9 commits into
mainfrom
pass-multiple-errors
Nov 13, 2024
Merged

Jakub Jareš (nohwnd) merged 9 commits into
mainfrom
pass-multiple-errors

Conversation

@nohwnd

Copy link
Copy Markdown
Member

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.

public const ushort ErrorMessage = 6;
public const ushort ErrorStackTrace = 7;
public const ushort ExceptionMessageList = 6;
public const ushort StandardOutput = 8;

Copy link
Copy Markdown
Contributor

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:

Copy link
Copy Markdown
Contributor

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.

@nohwnd
Jakub Jareš (nohwnd) merged commit eaf26c3 into main Nov 13, 2024
@nohwnd
Jakub Jareš (nohwnd) deleted the pass-multiple-errors branch November 13, 2024 10:21
@nohwnd

Copy link
Copy Markdown
Member Author

Merging this as agreed with Mariam so she has easier time using my changes, will address the refactorings in separate PR/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants