Skip to content

Commit

Permalink
Try to show test summary
Browse files Browse the repository at this point in the history
  • Loading branch information
fredimachado committed May 25, 2024
1 parent ec44695 commit d7d7b64
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/admin-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ jobs:

- name: Test
id: test
run: >
dotnet test ../**.Tests/**.csproj
--results-directory ${{github.workspace}}/TestResults --blame
--logger console --logger trx --logger html
--logger "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true"
'/p:CollectCoverage=true;CoverletOutputFormat="json,lcov,cobertura";MergeWith=${{github.workspace}}/TestResults/coverage.json;CoverletOutput=${{github.workspace}}/TestResults/coverage'
--
RunConfiguration.CollectSourceInformation=true
run: |
echo "## Test results" >> $GITHUB_STEP_SUMMARY
dotnet test ../**.Tests/**.csproj \
--results-directory ${{github.workspace}}/TestResults --blame \
--logger console --logger trx --logger html \
--logger "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true" \
'/p:CollectCoverage=true;CoverletOutputFormat="json,lcov,cobertura";MergeWith=${{github.workspace}}/TestResults/coverage.json;CoverletOutput=${{github.workspace}}/TestResults/coverage' \
-- RunConfiguration.CollectSourceInformation=true
- name: Upload Test Results
if: (success() || steps.test.conclusion == 'failure')
Expand Down

0 comments on commit d7d7b64

Please sign in to comment.