turing85/Publish Test Report

Action to publish a Test Report. The report is published as check and can be posted as comment to a PR.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
github-tokenThe github-token to use. yes${{ github.token }}
checkoutWhether a checkout should be performed yesfalse
override-commentOverrides the comment on a PR. yesfalse
recreate-commentTriggers the (re-)creation of the comment in a PR, that is updated with the reports. yesfalse
comment-enabledWhether a comment on the PR should be posted. yestrue
comment-headerThe header to identify the PR comment. This is an invisible tag on the comment. yesreports
comment-message-failureMessage appended to the comment posted on the PR after the tests failed. The message can be templated for replacement. The format feature of github-expressions (https://docs.github.com/en/actions/learn-github-actions/expressions#format) is used to replace placeholders. The following placeholder-mapping applies: - {0} is inputs'.'report-name - {1} is the number of successful tests - {2} is the number of failed tests - {3} is the number of skipped tests - {4} is the URL to the HTML-Report yes<details> <summary><h3>😔 {0} failed</h3></summary> | Passed | Failed | Skipped | |--------|--------|---------| | ✅ {1} | ❌ {2} | ⚠️ {3} | You can see the report [here]({4}). </details>
comment-message-overrideThe new comment message. Notice that the old comment will be completely overridden. yes## 🚦Reports for run [#${{ github.run_number }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})🚦 Reports will be posted here as they get available.
comment-message-recreateInitial text for the comment posted on the PR. Subsequent messages will be appended. yes## 🚦Reports for run [#${{ github.run_number }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})🚦 Reports will be posted here as they get available.
comment-message-successMessage appended to the comment posted on the PR after the tests succeeded. The message can be templated for replacement. The format feature of github-expressions (https://docs.github.com/en/actions/learn-github-actions/expressions#format) is used to replace placeholders. The following placeholder-mapping applies: - {0} is inputs'.'report-name - {1} is the number of successful tests - {2} is the number of failed tests - {3} is the number of skipped tests - {4} is the URL to the HTML-Report yes<details> <summary><h3>🥳 {0} passed</h3></summary> | Passed | Failed | Skipped | |--------|--------|---------| | ✅ {1} | ❌ {2} | ⚠️ {3} | You can see the report [here]({4}). </details>
comment-message-pr-numberThe PR number to which the comment should be written. yes${{ github.event.number }}
download-artifact-nameThe name of the artifact to download. yes""
download-artifact-patternThe pattern of the artifacts to download. yes""
download-artifact-merge-multipleIf artifacts should be merged if multiple artifacts are downloaded. yesfalse
download-artifact-run-idThe run-id for which the artifact should be downloaded. yes${{ github.run_id }}
report-fail-on-errorWhether an error in a test should fail the step. yestrue
report-list-suitesLimits which test suites are listed. Supported options: - all - failed yesall
report-list-testsLimits which test cases are listed. Supported options: - all - failed - none yesall
report-nameThe name of the report. The Text "Report" will be appended to form the report name that is attached to the check. So if we pass "JUnit" as report-name, the corresponding report will be called "JUnit Report". yesJUnit
report-only-summaryAllows you to generate only the summary. If enabled, the report will contain a table listing each test results file and the number of passed, failed, and skipped tests. Detailed listing of test suites and test cases will be skipped. yesfalse
report-pathA glob path to the report files. yes**/*.xml
report-reporterFormat of test results. Supported options: - dart-json - dotnet-trx - flutter-json - java-junit - jest-junit - mocha-json - mochawesome-json yesjava-junit
namedescription
report-urlURL to the report in workflow checks.
tests-passedNumber of tests passed.
tests-failedNumber of tests passed
tests-skippedNumber of tests passed