Skip to content

Commit

Permalink
Add test reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
renzo-baasdam committed Mar 19, 2024
1 parent 39165ed commit 2e984a3
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/build-test.yaml
Expand Up @@ -55,7 +55,7 @@ jobs:
- name: Test
run: |
dotnet test specs/Qowaiv.Specs --configuration Release \
--logger trx \
--logger "trx;LogFileName=test-results.trx" \
/p:CollectCoverage=true \
/p:ThresholdType=branch \
/p:CoverletOutputFormat=opencover
Expand All @@ -67,3 +67,10 @@ jobs:
run: |
./.sonar/scanner/dotnet-sonarscanner end \
/d:sonar.token="${{ secrets.SONAR_TOKEN }}"
- name: Upload Test Results
- name: Upload test results
uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: test-results
path: '**/test-results.trx'
16 changes: 16 additions & 0 deletions .github/workflows/test-report.yml
@@ -0,0 +1,16 @@
name: 'Test Report'
on:
workflow_run:
workflows: ['Build']
types:
- completed
jobs:
report:
runs-on: ubuntu-latest
steps:
- uses: dorny/test-reporter@v1
with:
artifact: test-results
name: Unit test results
path: '**/*.trx'
reporter: dotnet-trx

0 comments on commit 2e984a3

Please sign in to comment.