From 85df8d5613c639b68774ec0521f2c39368a85cab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Jare=C5=A1?= Date: Fri, 14 Mar 2025 12:40:35 +0100 Subject: [PATCH 1/3] Add assembly name --- eng/Versions.props | 6 ++++++ .../Tasks/InvokeTestingPlatformTask.cs | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/eng/Versions.props b/eng/Versions.props index ec8e5d599c5..584e19cfe53 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -1,9 +1,15 @@ +<<<<<<< HEAD 3.8.3 1.6.3 +======= + 3.10.0 + + 1.8.0 +>>>>>>> Add assembly name preview diff --git a/src/Platform/Microsoft.Testing.Platform.MSBuild/Tasks/InvokeTestingPlatformTask.cs b/src/Platform/Microsoft.Testing.Platform.MSBuild/Tasks/InvokeTestingPlatformTask.cs index 96907d237c3..ceafc2b4475 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,11 @@ private Task HandleRequestAsync(IRequest request) runSummaryInfoRequest.Total, runSummaryInfoRequest.Duration); + if (_moduleInfo != null) + { + summary += $" - {TargetPath.ItemSpec} ({TargetFrameworkParser.GetShortTargetFramework(TargetFramework.ItemSpec)}|{TestArchitecture.ItemSpec})"; + } + if (MSBuildCompatibilityHelper.SupportsTerminalLoggerWithExtendedMessages()) { var metadata = new Dictionary From e7065b09ecd6e36c798159a6fc6885fa7dec389d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Jare=C5=A1?= Date: Fri, 14 Mar 2025 13:48:18 +0100 Subject: [PATCH 2/3] Address --- eng/Versions.props | 6 ++++++ samples/Playground/Tests.cs | 2 +- .../Tasks/InvokeTestingPlatformTask.cs | 5 +---- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/eng/Versions.props b/eng/Versions.props index 584e19cfe53..6b08599094c 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -1,6 +1,7 @@ +<<<<<<< HEAD <<<<<<< HEAD 3.8.3 @@ -10,6 +11,11 @@ 1.8.0 >>>>>>> Add assembly name +======= + 3.9.0 + + 1.7.0 +>>>>>>> Address preview 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 ceafc2b4475..f6a8bd4dbd5 100644 --- a/src/Platform/Microsoft.Testing.Platform.MSBuild/Tasks/InvokeTestingPlatformTask.cs +++ b/src/Platform/Microsoft.Testing.Platform.MSBuild/Tasks/InvokeTestingPlatformTask.cs @@ -489,10 +489,7 @@ private Task HandleRequestAsync(IRequest request) runSummaryInfoRequest.Total, runSummaryInfoRequest.Duration); - if (_moduleInfo != null) - { - summary += $" - {TargetPath.ItemSpec} ({TargetFrameworkParser.GetShortTargetFramework(TargetFramework.ItemSpec)}|{TestArchitecture.ItemSpec})"; - } + summary += $" - {Path.GetFileName(TargetPath.ItemSpec)} ({TargetFrameworkParser.GetShortTargetFramework(TargetFramework.ItemSpec)}|{TestArchitecture.ItemSpec})"; if (MSBuildCompatibilityHelper.SupportsTerminalLoggerWithExtendedMessages()) { From 4e9a0caa4ed10e478af700e0277f5535ebba5b23 Mon Sep 17 00:00:00 2001 From: Youssef Victor Date: Sun, 16 Mar 2025 12:47:09 +0100 Subject: [PATCH 3/3] Resolve conflicts --- eng/Versions.props | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/eng/Versions.props b/eng/Versions.props index 6b08599094c..ec8e5d599c5 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -1,21 +1,9 @@ -<<<<<<< HEAD -<<<<<<< HEAD 3.8.3 1.6.3 -======= - 3.10.0 - - 1.8.0 ->>>>>>> Add assembly name -======= - 3.9.0 - - 1.7.0 ->>>>>>> Address preview