File tree Expand file tree Collapse file tree 6 files changed +43
-45
lines changed
GitHubActionsTestLogger.Demo
GitHubActionsTestLogger.Tests Expand file tree Collapse file tree 6 files changed +43
-45
lines changed Original file line number Diff line number Diff line change 88 </PropertyGroup >
99
1010 <ItemGroup >
11- <PackageReference Include =" CSharpier.MsBuild" Version =" 0.26.7 " PrivateAssets =" all" />
12- <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.8 .0" />
13- <PackageReference Include =" xunit" Version =" 2.6.4 " />
14- <PackageReference Include =" xunit.runner.visualstudio" Version =" 2.5.6 " PrivateAssets =" all" />
11+ <PackageReference Include =" CSharpier.MsBuild" Version =" 0.28.2 " PrivateAssets =" all" />
12+ <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.10 .0" />
13+ <PackageReference Include =" xunit" Version =" 2.8.1 " />
14+ <PackageReference Include =" xunit.runner.visualstudio" Version =" 2.8.1 " PrivateAssets =" all" />
1515 </ItemGroup >
1616
1717 <ItemGroup >
Original file line number Diff line number Diff line change 99 </ItemGroup >
1010
1111 <ItemGroup >
12- <PackageReference Include =" coverlet.collector" Version =" 6.0.0 " PrivateAssets =" all" />
13- <PackageReference Include =" CSharpier.MsBuild" Version =" 0.26.7 " PrivateAssets =" all" />
12+ <PackageReference Include =" coverlet.collector" Version =" 6.0.2 " PrivateAssets =" all" />
13+ <PackageReference Include =" CSharpier.MsBuild" Version =" 0.28.2 " PrivateAssets =" all" />
1414 <PackageReference Include =" FluentAssertions" Version =" 6.12.0" />
15- <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.8 .0" />
16- <PackageReference Include =" xunit" Version =" 2.6.4 " />
17- <PackageReference Include =" xunit.runner.visualstudio" Version =" 2.5.6 " PrivateAssets =" all" />
15+ <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.10 .0" />
16+ <PackageReference Include =" xunit" Version =" 2.8.1 " />
17+ <PackageReference Include =" xunit.runner.visualstudio" Version =" 2.8.1 " PrivateAssets =" all" />
1818 </ItemGroup >
1919
2020 <ItemGroup >
Original file line number Diff line number Diff line change @@ -25,12 +25,12 @@ params TestResult[] testResults
2525 true ,
2626 // lang=xml
2727 $ """
28- <RunSettings>
29- <RunConfiguration>
30- <TargetFrameworkVersion>{ targetFrameworkName } </TargetFrameworkVersion>
31- </RunConfiguration>
32- </RunSettings>
33- """
28+ <RunSettings>
29+ <RunConfiguration>
30+ <TargetFrameworkVersion>{ targetFrameworkName } </TargetFrameworkVersion>
31+ </RunConfiguration>
32+ </RunSettings>
33+ """
3434 )
3535 )
3636 ) ;
@@ -43,14 +43,14 @@ params TestResult[] testResults
4343 new TestRunStatistics (
4444 new Dictionary < TestOutcome , long >
4545 {
46- [ TestOutcome . Passed ] = testResults . Count (
47- r => r . Outcome == TestOutcome . Passed
46+ [ TestOutcome . Passed ] = testResults . Count ( r =>
47+ r . Outcome == TestOutcome . Passed
4848 ) ,
49- [ TestOutcome . Failed ] = testResults . Count (
50- r => r . Outcome == TestOutcome . Failed
49+ [ TestOutcome . Failed ] = testResults . Count ( r =>
50+ r . Outcome == TestOutcome . Failed
5151 ) ,
52- [ TestOutcome . Skipped ] = testResults . Count (
53- r => r . Outcome == TestOutcome . Skipped
52+ [ TestOutcome . Skipped ] = testResults . Count ( r =>
53+ r . Outcome == TestOutcome . Skipped
5454 ) ,
5555 [ TestOutcome . None ] = testResults . Count ( r => r . Outcome == TestOutcome . None )
5656 }
Original file line number Diff line number Diff line change 2323 </ItemGroup >
2424
2525 <ItemGroup >
26- <PackageReference Include =" CSharpier.MsBuild" Version =" 0.26.7 " PrivateAssets =" all" />
27- <PackageReference Include =" Microsoft.TestPlatform.ObjectModel" Version =" 17.8 .0" />
26+ <PackageReference Include =" CSharpier.MsBuild" Version =" 0.28.2 " PrivateAssets =" all" />
27+ <PackageReference Include =" Microsoft.TestPlatform.ObjectModel" Version =" 17.10 .0" />
2828 <PackageReference Include =" Microsoft.SourceLink.GitHub" Version =" 8.0.0" PrivateAssets =" all" />
29- <PackageReference Include =" PolyShim" Version =" 1.9 .0" PrivateAssets =" all" />
30- <PackageReference Include =" RazorBlade" Version =" 0.5 .0" ExcludeAssets =" compile;runtime" PrivateAssets =" all" />
29+ <PackageReference Include =" PolyShim" Version =" 1.12 .0" PrivateAssets =" all" />
30+ <PackageReference Include =" RazorBlade" Version =" 0.6 .0" ExcludeAssets =" compile;runtime" PrivateAssets =" all" />
3131 </ItemGroup >
3232
3333</Project >
Original file line number Diff line number Diff line change @@ -117,11 +117,10 @@ public void HandleTestRunComplete(TestRunCompleteEventArgs args)
117117 ) ;
118118
119119 var testResults = _testResults
120- . Where (
121- r =>
122- r . Outcome == TestOutcome . Failed
123- || r . Outcome == TestOutcome . Passed && Options . SummaryIncludePassedTests
124- || r . Outcome == TestOutcome . Skipped && Options . SummaryIncludeSkippedTests
120+ . Where ( r =>
121+ r . Outcome == TestOutcome . Failed
122+ || r . Outcome == TestOutcome . Passed && Options . SummaryIncludePassedTests
123+ || r . Outcome == TestOutcome . Skipped && Options . SummaryIncludeSkippedTests
125124 )
126125 . ToArray ( ) ;
127126
Original file line number Diff line number Diff line change @@ -28,21 +28,20 @@ internal static class TestResultExtensions
2828
2929 return StackFrame
3030 . ParseMany ( testResult . ErrorStackTrace )
31- . LastOrDefault (
32- f =>
33- // Sync method call
34- // e.g. MyTests.EnsureOnePlusOneEqualsTwo()
35- f . MethodCall . StartsWith (
36- testMethodFullyQualifiedName ,
37- StringComparison . OrdinalIgnoreCase
38- )
39- ||
40- // Async method call
41- // e.g. MyTests.<EnsureOnePlusOneEqualsTwo>d__3.MoveNext()
42- f . MethodCall . Contains (
43- '<' + testMethodName + '>' ,
44- StringComparison . OrdinalIgnoreCase
45- )
31+ . LastOrDefault ( f =>
32+ // Sync method call
33+ // e.g. MyTests.EnsureOnePlusOneEqualsTwo()
34+ f . MethodCall . StartsWith (
35+ testMethodFullyQualifiedName ,
36+ StringComparison . OrdinalIgnoreCase
37+ )
38+ ||
39+ // Async method call
40+ // e.g. MyTests.<EnsureOnePlusOneEqualsTwo>d__3.MoveNext()
41+ f . MethodCall . Contains (
42+ '<' + testMethodName + '>' ,
43+ StringComparison . OrdinalIgnoreCase
44+ )
4645 ) ;
4746 }
4847
You can’t perform that action at this time.
0 commit comments