Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Github Actions: Report dotnet test result as annotations

If you run tests using Azure Pipelines you would get some cool results on the checks tabs.

enter image description here

Is there any way to do the same from Github Actions so we don't have to go through the console output?

enter image description here

like image 761
hardkoded Avatar asked Jun 18 '26 14:06

hardkoded


1 Answers

Here is one solution: https://github.com/microsoft/vstest/issues/2370#issuecomment-602233131

GitHub user Tyrrrz made a small proof of concept using GitHub Actions commands. This reports test failures to the GH Actions platform, letting you see them in the Annotations view and navigate to the exact/file that triggered it. This is not exactly the solution to "support colorized output" but may solve the underlying issue that GitHub Actions doesn't show the list of failed tests nicely.

https://github.com/Tyrrrz/GitHubActionsTestLogger https://github.com/Tyrrrz/GitHubActionsTestLogger/runs/525594126?check_suite_focus=true

like image 174
Happypig375 Avatar answered Jun 20 '26 10:06

Happypig375