Skip to content

Commit 113edfb

Browse files
johnkorsclaude
andcommitted
Report MTP test results as GitHub Actions annotations
CI has been failing on real integration tests (Slack API calls timing out) but the raw dotnet test console output makes it hard to see which test actually failed. Add Microsoft.Testing.Extensions.GitHubActionsReport and pass --report-gh through the Bullseye test target so Microsoft.Testing.Platform writes a per-assembly pass/fail summary with collapsible failure details to the GitHub Actions job summary. No-ops outside GITHUB_ACTIONS, so local runs are unaffected. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent 8e5c2d4 commit 113edfb

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

build/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
Target(Build, new[] { Restore }, () => RunAsync("dotnet", $"build {solution} --no-restore"));
1717

18-
Target(Test, new[] { Build }, () => RunAsync("dotnet", $"test {solution} --no-build"));
18+
Target(Test, new[] { Build }, () => RunAsync("dotnet", $"test {solution} --no-build -- --report-gh"));
1919

2020
Target(Pack, new[] { Build }, async () =>
2121
{

source/test/Slackbot.Net.SlackClients.Http.Tests/Slackbot.Net.SlackClients.Http.Tests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.10.0"/>
1818
<PackageReference Include="xunit.v3" Version="4.0.0"/>
1919
<PackageReference Include="xunit.runner.visualstudio" Version="4.0.0"/>
20+
<PackageReference Include="Microsoft.Testing.Extensions.GitHubActionsReport" Version="2.4.0"/>
2021
</ItemGroup>
2122

2223
<ItemGroup>

0 commit comments

Comments
 (0)