Skip to content

Commit

Permalink
Change for unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lekman committed Aug 10, 2023
1 parent 98260bd commit 01f8f34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_verification_dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 01f8f34

Please sign in to comment.