Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
TheAngryByrd opened this issue Apr 6, 2022 · 1 comment
Open

Comments

@TheAngryByrd
Copy link
Owner

TheAngryByrd commented Apr 6, 2022

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
Copy link
Owner Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant