From 01f8f34dd3d9dea555ad1665110f24c48c1c9b7e Mon Sep 17 00:00:00 2001 From: Tobias Lekman Date: Thu, 10 Aug 2023 07:15:34 +0100 Subject: [PATCH] Change for unit tests --- .github/workflows/build_verification_dotnet.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_verification_dotnet.yml b/.github/workflows/build_verification_dotnet.yml index dccadd6..e192e3a 100644 --- a/.github/workflows/build_verification_dotnet.yml +++ b/.github/workflows/build_verification_dotnet.yml @@ -83,7 +83,7 @@ jobs: # Execute the unit tests - name: Run unit tests if: ${{ inputs.run_tests == true }} - run: dotnet test ${{ env.TEST_PROJECT_PATH }} --configuration Release --no-build --verbosity normal --collect:"XPlat Code Coverage" --results-directory ./coverage + run: dotnet test ${{ env.TEST_PROJECT_PATH }} --configuration Debug --logger "trx;LogFileName=test-results.trx" # A custom label can be generated to differentiate between multiple tests in the same action run - name: Set test report label @@ -119,7 +119,7 @@ jobs: # Execute coverage for unit tests - name: Run coverage tests if: ${{ inputs.report_coverage == true }} - run: dotnet test ${{ env.TEST_PROJECT_PATH }} --configuration Release --no-build --verbosity normal --collect:"XPlat Code Coverage" --results-directory ./coverage + run: dotnet test ${{ env.TEST_PROJECT_PATH }} --configuration Debug --no-build --verbosity normal --collect:"XPlat Code Coverage" --results-directory ./coverage # Report coverage summary to the user - name: Code Coverage Report