Skip to content

Commit

Permalink
ci: add test reporter for easier overview of test results
Browse files Browse the repository at this point in the history
  • Loading branch information
egil committed Sep 24, 2024
1 parent ac8603c commit 9175219
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,18 @@ jobs:
9.0.x
- name: 🧪 Run unit tests
run: dotnet test -c release -p:VSTestUseMSBuildOutput=false --logger "console;verbosity=normal"
run: dotnet test -c release -p:VSTestUseMSBuildOutput=false --verbosity normal --logger trx --results-directory TestResults --collect "XPlat Code Coverage"

- name: Test Reports
uses: bibipkins/[email protected]
if: always()
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
comment-title: "Unit Test Results"
results-path: ./TestResults/*.trx
coverage-path: ./TestResults/**/coverage.cobertura.xml
coverage-type: cobertura
coverage-threshold: 0.00

- name: 📛 Upload hang- and crash-dumps on test failure
if: failure()
Expand Down

0 comments on commit 9175219

Please sign in to comment.