File tree 6 files changed +43
-45
lines changed
GitHubActionsTestLogger.Demo
GitHubActionsTestLogger.Tests
6 files changed +43
-45
lines changed Original file line number Diff line number Diff line change 8
8
</PropertyGroup >
9
9
10
10
<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" />
15
15
</ItemGroup >
16
16
17
17
<ItemGroup >
Original file line number Diff line number Diff line change 9
9
</ItemGroup >
10
10
11
11
<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" />
14
14
<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" />
18
18
</ItemGroup >
19
19
20
20
<ItemGroup >
Original file line number Diff line number Diff line change @@ -25,12 +25,12 @@ params TestResult[] testResults
25
25
true ,
26
26
// lang=xml
27
27
$ """
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
+ """
34
34
)
35
35
)
36
36
) ;
@@ -43,14 +43,14 @@ params TestResult[] testResults
43
43
new TestRunStatistics (
44
44
new Dictionary < TestOutcome , long >
45
45
{
46
- [ TestOutcome . Passed ] = testResults . Count (
47
- r => r . Outcome == TestOutcome . Passed
46
+ [ TestOutcome . Passed ] = testResults . Count ( r =>
47
+ r . Outcome == TestOutcome . Passed
48
48
) ,
49
- [ TestOutcome . Failed ] = testResults . Count (
50
- r => r . Outcome == TestOutcome . Failed
49
+ [ TestOutcome . Failed ] = testResults . Count ( r =>
50
+ r . Outcome == TestOutcome . Failed
51
51
) ,
52
- [ TestOutcome . Skipped ] = testResults . Count (
53
- r => r . Outcome == TestOutcome . Skipped
52
+ [ TestOutcome . Skipped ] = testResults . Count ( r =>
53
+ r . Outcome == TestOutcome . Skipped
54
54
) ,
55
55
[ TestOutcome . None ] = testResults . Count ( r => r . Outcome == TestOutcome . None )
56
56
}
Original file line number Diff line number Diff line change 23
23
</ItemGroup >
24
24
25
25
<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" />
28
28
<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" />
31
31
</ItemGroup >
32
32
33
33
</Project >
Original file line number Diff line number Diff line change @@ -117,11 +117,10 @@ public void HandleTestRunComplete(TestRunCompleteEventArgs args)
117
117
) ;
118
118
119
119
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
125
124
)
126
125
. ToArray ( ) ;
127
126
Original file line number Diff line number Diff line change @@ -28,21 +28,20 @@ internal static class TestResultExtensions
28
28
29
29
return StackFrame
30
30
. 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
+ )
46
45
) ;
47
46
}
48
47
You can’t perform that action at this time.
0 commit comments