From 9fd178424f586dcc497e980f3ce4a692bff225be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Wei=C3=9F?= <72068105+Sandoun@users.noreply.github.com> Date: Tue, 13 Jun 2023 22:35:38 +0200 Subject: [PATCH] Update build-pipeline.yml --- .github/workflows/build-pipeline.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-pipeline.yml b/.github/workflows/build-pipeline.yml index 115c97a..738a871 100644 --- a/.github/workflows/build-pipeline.yml +++ b/.github/workflows/build-pipeline.yml @@ -38,7 +38,15 @@ jobs: - name: 'Run tests' run: | cd '${{ github.workspace }}/MewtocolTests' - dotnet test --logger:"console;verbosity=detailed" + dotnet test --logger "trx;logfilename=testresults.trx" + #Generate a test report + - name: 'Test Report' + uses: dorny/test-reporter@v1 + if: success() || failure() # run this step even if previous step failed + with: + name: XUnit Tests # Name of the check run which will be created + path: TestResults/testresults.xml # Path to test results + reporter: dotnet-trx # Format of test results #Run code ql check code-ql-check: @@ -90,4 +98,4 @@ jobs: # NUGET_SOURCE: https://api.nuget.org # Flag to toggle pushing symbols along with nuget package to the server, disabled by default - # INCLUDE_SYMBOLS: false \ No newline at end of file + # INCLUDE_SYMBOLS: false