MiniScaffold icon indicating copy to clipboard operation
MiniScaffold copied to clipboard

Use test-reporter in GitHub actions to display test results.

Open TheAngryByrd opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe.

Incorporate https://github.com/dorny/test-reporter to display test results

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context

dotnet test --logger:"trx;LogFilePrefix=testResults" LogFilePrefix will make sure to specify the TFM in the results output so you get something like testResults_net6.0_20220406080049.trx instead of messages like WARNING: Overwriting results file: TestResults/test-results.trx for every TargetFramework

Could also try using fsproj/props properties

<PropertyGroup>
  <VSTestLogger>trx</VSTestLogger>
  <VSTestLogFilePrefix>testResults</VSTestLogFilePrefix>
</PropertyGroup>

Twitter Discussion

Example Output

TheAngryByrd avatar Apr 06 '22 11:04 TheAngryByrd

This also looks like an option https://github.com/Tyrrrz/GitHubActionsTestLogger but requires a feature of GitHub Actions that is in closed preview

TheAngryByrd avatar Apr 19 '22 21:04 TheAngryByrd