Skip to content

Commit ae81378

Browse files
committed
Add a test report step to GitHub actions with dorny/test-reporter
1 parent 0d4b3b5 commit ae81378

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Build solution
3737
run: dotnet build
3838
- name: Run tests
39-
run: dotnet test --no-build --logger "html;LogFileName=../../TestResults-${{ runner.os }}.html" --logger GitHubActions
39+
run: dotnet test --no-build --logger "html;LogFileName=../../TestResults-${{ runner.os }}.html" --logger "trx;LogFileName=../../TestResults-${{ runner.os }}.trx" --logger GitHubActions
4040
id: dotnet-test
4141
- name: Upload received files from failing tests
4242
uses: actions/upload-artifact@v2
@@ -50,6 +50,13 @@ jobs:
5050
with:
5151
name: TestResults-${{ runner.os }}
5252
path: TestResults-${{ runner.os }}.html
53+
- name: Test Report
54+
uses: dorny/test-reporter@v1
55+
if: always()
56+
with:
57+
name: Test Results (${{ runner.os }})
58+
path: TestResults-${{ runner.os }}.trx
59+
reporter: dotnet-trx
5360
- name: Upload coverage report to Codecov
5461
if: matrix.os == 'macos-latest'
5562
uses: codecov/codecov-action@v2

0 commit comments

Comments
 (0)