actions-marketplace-validations/Test Reporter with Notice Option
Fork of dorny/test-reporter but with option to surface link to html notice to combat GHA bug
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| artifact | Name or regex of artifact containing test results | no | — |
| name | Name of the check run | yes | — |
| path | Comma-separated list of paths to test results Supports wildcards via [fast-glob](https://github.com/mrmlnc/fast-glob) All matched result files must be of same format | yes | — |
| path-replace-backslashes | The fast-glob library that is internally used interprets backslashes as escape characters. If enabled, all backslashes in provided path will be replaced by forward slashes and act as directory separators. It might be useful when path input variable is composed dynamically from existing directory paths on Windows. | no | false |
| reporter | Format of test results. Supported options: - dart-json - dotnet-trx - flutter-json - java-junit - jest-junit - mocha-json - swift-xunit | yes | — |
| list-suites | Limits which test suites are listed. Supported options: - all - only-failed | no | all |
| list-tests | Limits which test cases are listed. Supported options: - all - only-failed - none | no | all |
| max-annotations | Limits number of created annotations with error message and stack trace captured during test execution. Must be less or equal to 50. | no | 10 |
| fail-on-error | Set this action as failed if test report contain any failed test | no | true |
| fail-on-empty | Set this action as failed if no test results were found | yes | true |
| working-directory | Relative path under $GITHUB_WORKSPACE where the repository was checked out | no | — |
| show-html-notice | Show the link to the html results in the form of a notice on the summary page. This was created to combat a GHA bug of not always displaying the results in the right action. | no | false |
| action-run-number | The run number of the action that generated the test results. Passed in through calling action into reporter | no | "" |
| only-summary | Allows 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. | no | false |
| token | GitHub Access Token | no | ${{ github.token }} |
Outputs
| name | description |
|---|---|
| conclusion | Final conclusion of the created check run: - 'success' if no failed tests was found - 'failure' if any failed test was found |
| passed | Count of passed tests |
| failed | Count of failed tests |
| skipped | Count of skipped tests |
| time | Test execution time [ms] |
| runHtmlUrl | comma separated list of html links to test results |
| url | Check run URL |
| url_html | Check run URL HTML |