From 0a45746aff3f1299890bb179d23aa55c0325c0e7 Mon Sep 17 00:00:00 2001
From: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com>
Date: Wed, 29 May 2024 22:59:26 +0300
Subject: [PATCH] Update NuGet packages
---
.../GitHubActionsTestLogger.Demo.csproj | 8 ++---
.../GitHubActionsTestLogger.Tests.csproj | 10 +++----
.../Extensions/TestLoggerContextExtensions.cs | 24 +++++++--------
.../GitHubActionsTestLogger.csproj | 8 ++---
GitHubActionsTestLogger/TestLoggerContext.cs | 9 +++---
.../Utils/Extensions/TestResultExtensions.cs | 29 +++++++++----------
6 files changed, 43 insertions(+), 45 deletions(-)
diff --git a/GitHubActionsTestLogger.Demo/GitHubActionsTestLogger.Demo.csproj b/GitHubActionsTestLogger.Demo/GitHubActionsTestLogger.Demo.csproj
index 7f83378..9d5fbf5 100644
--- a/GitHubActionsTestLogger.Demo/GitHubActionsTestLogger.Demo.csproj
+++ b/GitHubActionsTestLogger.Demo/GitHubActionsTestLogger.Demo.csproj
@@ -8,10 +8,10 @@
-
-
-
-
+
+
+
+
diff --git a/GitHubActionsTestLogger.Tests/GitHubActionsTestLogger.Tests.csproj b/GitHubActionsTestLogger.Tests/GitHubActionsTestLogger.Tests.csproj
index 53898eb..ae17736 100644
--- a/GitHubActionsTestLogger.Tests/GitHubActionsTestLogger.Tests.csproj
+++ b/GitHubActionsTestLogger.Tests/GitHubActionsTestLogger.Tests.csproj
@@ -9,12 +9,12 @@
-
-
+
+
-
-
-
+
+
+
diff --git a/GitHubActionsTestLogger.Tests/Utils/Extensions/TestLoggerContextExtensions.cs b/GitHubActionsTestLogger.Tests/Utils/Extensions/TestLoggerContextExtensions.cs
index 25e3be0..49c5246 100644
--- a/GitHubActionsTestLogger.Tests/Utils/Extensions/TestLoggerContextExtensions.cs
+++ b/GitHubActionsTestLogger.Tests/Utils/Extensions/TestLoggerContextExtensions.cs
@@ -25,12 +25,12 @@ params TestResult[] testResults
true,
// lang=xml
$"""
-
-
- {targetFrameworkName}
-
-
- """
+
+
+ {targetFrameworkName}
+
+
+ """
)
)
);
@@ -43,14 +43,14 @@ params TestResult[] testResults
new TestRunStatistics(
new Dictionary
{
- [TestOutcome.Passed] = testResults.Count(
- r => r.Outcome == TestOutcome.Passed
+ [TestOutcome.Passed] = testResults.Count(r =>
+ r.Outcome == TestOutcome.Passed
),
- [TestOutcome.Failed] = testResults.Count(
- r => r.Outcome == TestOutcome.Failed
+ [TestOutcome.Failed] = testResults.Count(r =>
+ r.Outcome == TestOutcome.Failed
),
- [TestOutcome.Skipped] = testResults.Count(
- r => r.Outcome == TestOutcome.Skipped
+ [TestOutcome.Skipped] = testResults.Count(r =>
+ r.Outcome == TestOutcome.Skipped
),
[TestOutcome.None] = testResults.Count(r => r.Outcome == TestOutcome.None)
}
diff --git a/GitHubActionsTestLogger/GitHubActionsTestLogger.csproj b/GitHubActionsTestLogger/GitHubActionsTestLogger.csproj
index 12bd51b..5905c55 100644
--- a/GitHubActionsTestLogger/GitHubActionsTestLogger.csproj
+++ b/GitHubActionsTestLogger/GitHubActionsTestLogger.csproj
@@ -23,11 +23,11 @@
-
-
+
+
-
-
+
+
\ No newline at end of file
diff --git a/GitHubActionsTestLogger/TestLoggerContext.cs b/GitHubActionsTestLogger/TestLoggerContext.cs
index 57b218a..d5fad03 100644
--- a/GitHubActionsTestLogger/TestLoggerContext.cs
+++ b/GitHubActionsTestLogger/TestLoggerContext.cs
@@ -117,11 +117,10 @@ public void HandleTestRunComplete(TestRunCompleteEventArgs args)
);
var testResults = _testResults
- .Where(
- r =>
- r.Outcome == TestOutcome.Failed
- || r.Outcome == TestOutcome.Passed && Options.SummaryIncludePassedTests
- || r.Outcome == TestOutcome.Skipped && Options.SummaryIncludeSkippedTests
+ .Where(r =>
+ r.Outcome == TestOutcome.Failed
+ || r.Outcome == TestOutcome.Passed && Options.SummaryIncludePassedTests
+ || r.Outcome == TestOutcome.Skipped && Options.SummaryIncludeSkippedTests
)
.ToArray();
diff --git a/GitHubActionsTestLogger/Utils/Extensions/TestResultExtensions.cs b/GitHubActionsTestLogger/Utils/Extensions/TestResultExtensions.cs
index 3081f6c..ca655f8 100644
--- a/GitHubActionsTestLogger/Utils/Extensions/TestResultExtensions.cs
+++ b/GitHubActionsTestLogger/Utils/Extensions/TestResultExtensions.cs
@@ -28,21 +28,20 @@ internal static class TestResultExtensions
return StackFrame
.ParseMany(testResult.ErrorStackTrace)
- .LastOrDefault(
- f =>
- // Sync method call
- // e.g. MyTests.EnsureOnePlusOneEqualsTwo()
- f.MethodCall.StartsWith(
- testMethodFullyQualifiedName,
- StringComparison.OrdinalIgnoreCase
- )
- ||
- // Async method call
- // e.g. MyTests.d__3.MoveNext()
- f.MethodCall.Contains(
- '<' + testMethodName + '>',
- StringComparison.OrdinalIgnoreCase
- )
+ .LastOrDefault(f =>
+ // Sync method call
+ // e.g. MyTests.EnsureOnePlusOneEqualsTwo()
+ f.MethodCall.StartsWith(
+ testMethodFullyQualifiedName,
+ StringComparison.OrdinalIgnoreCase
+ )
+ ||
+ // Async method call
+ // e.g. MyTests.d__3.MoveNext()
+ f.MethodCall.Contains(
+ '<' + testMethodName + '>',
+ StringComparison.OrdinalIgnoreCase
+ )
);
}