Skip to content
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

Merged
merged 9 commits into from
Nov 13, 2024
Merged

Pass multiple errors #4054

merged 9 commits into from
Nov 13, 2024

Conversation

nohwnd
Copy link
Member

@nohwnd nohwnd commented Nov 12, 2024

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.

@@ -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;
Copy link
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
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 nohwnd merged commit eaf26c3 into main Nov 13, 2024
6 checks passed
@nohwnd nohwnd deleted the pass-multiple-errors branch November 13, 2024 10:21
@nohwnd
Copy link
Member Author

nohwnd commented Nov 13, 2024

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