Skip to content

Commit d9a7c12

Browse files
CopilotTheAngryByrd
andcommitted
Add test-reporter action to workflows and TRX logging to test execution
Co-authored-by: TheAngryByrd <[email protected]>
1 parent 6e23533 commit d9a7c12

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

Content/Console/.github/workflows/build.yml

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

Content/Console/build/build.fs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ let dotnetTest ctx =
345345
c with
346346
MSBuildParams = disableBinLog c.MSBuildParams
347347
Configuration = configuration (ctx.Context.AllExecutingTargets)
348+
Logger = Some "trx;LogFilePrefix=testResults"
348349
Common =
349350
c.Common
350351
|> DotNet.Options.withAdditionalArgs args

Content/Library/.github/workflows/build.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ jobs:
3939
CI: true
4040
CONFIGURATION: ${{ matrix.configuration }}
4141
ENABLE_COVERAGE: true
42+
- name: Test Report
43+
uses: dorny/test-reporter@v1
44+
if: always()
45+
with:
46+
name: Test Results (${{ matrix.os }}-${{ matrix.configuration }})
47+
path: '**/TestResults/testResults*.trx'
48+
reporter: dotnet-trx
4249
# Builds the project in a dev container
4350
build-devcontainer:
4451
runs-on: ubuntu-latest

Content/Library/build/build.fs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,7 @@ let dotnetTest ctx =
436436
c with
437437
MSBuildParams = disableBinLog c.MSBuildParams
438438
Configuration = configuration (ctx.Context.AllExecutingTargets)
439+
Logger = Some "trx;LogFilePrefix=testResults"
439440
Common =
440441
c.Common
441442
|> DotNet.Options.withAdditionalArgs args

0 commit comments

Comments
 (0)