diff --git a/samples/Playground/Tests.cs b/samples/Playground/Tests.cs index cdd184d1097..5baadf9ecc5 100644 --- a/samples/Playground/Tests.cs +++ b/samples/Playground/Tests.cs @@ -15,7 +15,7 @@ public class TestClass [TestMethod] [DynamicData(nameof(Data))] public void Test3(int a, int b) - => Assert.AreNotEqual(a, b); + => throw new Exception("aaaa"); public static IEnumerable<(int A, int B)> Data { diff --git a/src/Platform/Microsoft.Testing.Platform.MSBuild/Tasks/InvokeTestingPlatformTask.cs b/src/Platform/Microsoft.Testing.Platform.MSBuild/Tasks/InvokeTestingPlatformTask.cs index 96907d237c3..f6a8bd4dbd5 100644 --- a/src/Platform/Microsoft.Testing.Platform.MSBuild/Tasks/InvokeTestingPlatformTask.cs +++ b/src/Platform/Microsoft.Testing.Platform.MSBuild/Tasks/InvokeTestingPlatformTask.cs @@ -13,6 +13,7 @@ using Microsoft.Testing.Platform.IPC.Serializers; using Microsoft.Testing.Platform.Logging; using Microsoft.Testing.Platform.MSBuild.Tasks; +using Microsoft.Testing.Platform.OutputDevice; using static Microsoft.Testing.Platform.MSBuild.Tasks.DotnetMuxerLocator; @@ -488,6 +489,8 @@ private Task HandleRequestAsync(IRequest request) runSummaryInfoRequest.Total, runSummaryInfoRequest.Duration); + summary += $" - {Path.GetFileName(TargetPath.ItemSpec)} ({TargetFrameworkParser.GetShortTargetFramework(TargetFramework.ItemSpec)}|{TestArchitecture.ItemSpec})"; + if (MSBuildCompatibilityHelper.SupportsTerminalLoggerWithExtendedMessages()) { var metadata = new Dictionary