Skip to content

Commit bec0847

Browse files
committed
Add test reporting to CI workflow and configure test result logging
1 parent b85ee64 commit bec0847

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@ jobs:
4747
env:
4848
CONFIGURATION: ${{ matrix.configuration }}
4949
CI: true
50+
- name: Test Report
51+
uses: dorny/test-reporter@v1
52+
if: always()
53+
with:
54+
name: Test Results (${{ matrix.os }}-${{ matrix.configuration }})
55+
path: '**/TestResults/testResults*.trx'
56+
reporter: dotnet-trx
5057
# Builds the project in a dev container
5158
build-devcontainer:
5259
runs-on: ubuntu-latest

build/build.fs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,7 @@ let dotnetTest ctx =
395395
|> DotNet.Options.withAdditionalArgs args
396396
Configuration = configuration (ctx.Context.AllExecutingTargets)
397397
NoBuild = true
398+
Logger = Some "trx;LogFilePrefix=testResults"
398399
})
399400
sln
400401

0 commit comments

Comments
 (0)