From b5443011aa0d0650a3772b21360dbca9ee9bfa8d Mon Sep 17 00:00:00 2001 From: Daniel Cazzulino Date: Sun, 7 Jul 2024 16:59:04 -0300 Subject: [PATCH] Add runtime information to GH message This allows to distinguish otherwise apparently duplicated messages when running tests across multiple OSes --- src/dotnet-trx/TrxCommand.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dotnet-trx/TrxCommand.cs b/src/dotnet-trx/TrxCommand.cs index 6e97d2c..a98fed9 100644 --- a/src/dotnet-trx/TrxCommand.cs +++ b/src/dotnet-trx/TrxCommand.cs @@ -3,6 +3,7 @@ using System.ComponentModel; using System.IO; using System.Linq; +using System.Runtime.InteropServices; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; @@ -230,7 +231,7 @@ static void GitHubReport(Summary summary, StringBuilder details) var sb = new StringBuilder() .AppendLine( $""" - :point_right: Run {summary.Total} tests in ~ {summary.Duration.Humanize()}: + :point_right: Run {summary.Total} tests in ~ {summary.Duration.Humanize()} ({RuntimeInformation.FrameworkDescription} on {RuntimeInformation.OSDescription}): """);