Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion GitHubActionsTestLogger/MtpIntegration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public void AddGitHubActionsReporting(TextWriter commandWriter, TextWriter summa
);

testApplicationBuilder.TestHost.AddDataConsumer(compositeExtension);
testApplicationBuilder.TestHost.AddTestSessionLifetimeHandle(compositeExtension);
testApplicationBuilder.TestHost.AddTestSessionLifetimeHandler(compositeExtension);

testApplicationBuilder.CommandLine.AddProvider(() => new MtpLoggerOptionsProvider());
}
Expand Down
3 changes: 3 additions & 0 deletions GitHubActionsTestLogger/MtpLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ CancellationToken cancellationToken
ErrorTestNodeStateProperty => TestOutcome.Failed,
TimeoutTestNodeStateProperty => TestOutcome.Failed,
SkippedTestNodeStateProperty => TestOutcome.Skipped,
// Backwards compatibility with frameworks that still emit this property
#pragma warning disable CS0618
CancelledTestNodeStateProperty => TestOutcome.Skipped,
#pragma warning restore CS0618
_ => TestOutcome.None,
},
state.Explanation ?? exception?.Message,
Expand Down