Skip to content

Commit 9175219

Browse files
committed
ci: add test reporter for easier overview of test results
1 parent ac8603c commit 9175219

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,18 @@ jobs:
137137
9.0.x
138138
139139
- name: 🧪 Run unit tests
140-
run: dotnet test -c release -p:VSTestUseMSBuildOutput=false --logger "console;verbosity=normal"
140+
run: dotnet test -c release -p:VSTestUseMSBuildOutput=false --verbosity normal --logger trx --results-directory TestResults --collect "XPlat Code Coverage"
141+
142+
- name: Test Reports
143+
uses: bibipkins/[email protected]
144+
if: always()
145+
with:
146+
github-token: ${{ secrets.GITHUB_TOKEN }}
147+
comment-title: "Unit Test Results"
148+
results-path: ./TestResults/*.trx
149+
coverage-path: ./TestResults/**/coverage.cobertura.xml
150+
coverage-type: cobertura
151+
coverage-threshold: 0.00
141152

142153
- name: 📛 Upload hang- and crash-dumps on test failure
143154
if: failure()

0 commit comments

Comments
 (0)