Skip to content

Commit

Permalink
log test results to nunit trx file
Browse files Browse the repository at this point in the history
  • Loading branch information
megahirt committed Jul 12, 2024
1 parent 3afb400 commit cd1a1d3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ jobs:
run: dotnet build src/solid.sln --no-restore

- name: Run NUnit Tests
run: dotnet test output/net461/*Tests.dll --filter "TestCategory != SkipOnCI" --no-build -- NUnit.TestOutputXml=TestResults.xml
run: dotnet test output/net461/*Tests.dll --filter "TestCategory != SkipOnCI" --no-build --logger "trx;LogFileName=test-results.trx"

- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure() # run this step even if previous step failed
if: always()
with:
name: NUnit Tests
path: TestResults.xml
reporter: java-junit
path: '**/test-results.trx'
reporter: dotnet-trx

0 comments on commit cd1a1d3

Please sign in to comment.