diff --git a/GitHubActionsTestLogger/MtpIntegration.cs b/GitHubActionsTestLogger/MtpIntegration.cs index 997b6d2..9e567bd 100644 --- a/GitHubActionsTestLogger/MtpIntegration.cs +++ b/GitHubActionsTestLogger/MtpIntegration.cs @@ -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()); } diff --git a/GitHubActionsTestLogger/MtpLogger.cs b/GitHubActionsTestLogger/MtpLogger.cs index 70ccee7..c036045 100644 --- a/GitHubActionsTestLogger/MtpLogger.cs +++ b/GitHubActionsTestLogger/MtpLogger.cs @@ -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,