Skip to content

Generate Test Report for Bump the xunit group with 1 update (#10756) Bumps xunit.runner.visualstudio from 3.1.2 to 3.1.3 --- updated-dependencies: - dependency-name: xunit.runner.visualstudio dependency-version: 3.1.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: xunit ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> #397

Generate Test Report for Bump the xunit group with 1 update (#10756) Bumps xunit.runner.visualstudio from 3.1.2 to 3.1.3 --- updated-dependencies: - dependency-name: xunit.runner.visualstudio dependency-version: 3.1.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: xunit ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Generate Test Report for Bump the xunit group with 1 update (#10756) Bumps xunit.runner.visualstudio from 3.1.2 to 3.1.3 --- updated-dependencies: - dependency-name: xunit.runner.visualstudio dependency-version: 3.1.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: xunit ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> #397

Workflow file for this run

name: report-test-results
run-name: Generate Test Report for ${{ github.event.workflow_run.head_commit.message }}
on:
workflow_run:
workflows:
- ci
- nightly
types:
- completed
permissions:
contents: read
actions: read
checks: write
jobs:
report:
runs-on: ubuntu-latest
timeout-minutes: 30
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event.workflow_run.conclusion == 'failure' }}
steps:
- name: Create Test Report
uses: dorny/test-reporter@890a17cecf52a379fc869ab770a71657660be727 # v2.1.0
id : test-reports
with:
artifact: /^logs-(.*)/ # Name of artifact to report
name: test-results # Name of the `check run` which will be created
path: 'test/TestResults/*.trx'
reporter: dotnet-trx
fail-on-error: false
fail-on-empty: false
- name: Output message to job summary
id: output-job-summary
shell: pwsh
if: ${{ steps.test-reports.outputs.time != '0' }}
run: |
$conclusion = "${{ steps.test-reports.outputs.conclusion }}"
$passed = "${{ steps.test-reports.outputs.passed }}"
$failed = "${{ steps.test-reports.outputs.failed }}"
$skipped = "${{ steps.test-reports.outputs.skipped }}"
$time = "${{ steps.test-reports.outputs.time }}"
$url_html = "${{ steps.test-reports.outputs.url_html }}"
$content = @"
## Summary of Test Report
- **Report URL**: $url_html
| Conclusion | Passed | Failed | Skipped | Time |
|-------------|---------|---------|----------|------------|
| $conclusion | $passed | $failed | $skipped | $time [ms] |
"@
Write-Output $content >> $env:GITHUB_STEP_SUMMARY
if($failed -ne '0'){
echo "::error::Test Report contains ${failed} errors."
exit 1
}