actions-marketplace-validations/Dotnet Test Reporter
A GitHub action to parse test results and post the summary as a PR comment
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| github-token | GitHub repository token | yes | — |
| results-path | Path to the trx file(s) containing test results. Supports glob patterns | yes | — |
| coverage-path | Path to the file containing test coverage. Supports glob patterns | no | — |
| coverage-type | Coverage file type | no | opencover |
| coverage-threshold | Minimum allowed coverage (from 0.00 to 100.00) | no | — |
| changed-files-and-line-numbers | Array of changed files and lines numbers | no | [] |
| comment-title | Pull Request comment title | no | Test Results |
| post-new-comment | Boolean flag. Set to true to post a new comment after each run | no | false |
| allow-failed-tests | Boolean flag. Set to true to prevent failed tests from failing the job | no | false |
| show-failed-tests-only | Boolean flag. Show only failed tests in summary. Useful for when test count is large and the details are truncated | no | false |
| show-test-output | Boolean flag. Show the output of the tests. Useful if there is too much output leading to truncation on the summary | no | true |
| server-url | Github server URL. Defaults to getting the server URL from the github.server_url context | no | ${{ github.server_url }} |
| pull-request-check | Boolean flag. Set to true to create GitHub status checks on the commit/PR for test results | no | false |
| pull-request-check-name | Name of the GitHub status check for test results | no | Test Results |
Outputs
| name | description |
|---|---|
| tests-total | Total number of tests |
| tests-passed | Number of tests passed |
| tests-failed | Number of tests failed |
| tests-skipped | Number of tests skipped |
| coverage-line | Line code coverage |
| coverage-lines-total | Total lines of code |
| coverage-lines-covered | Lines of code covered |
| coverage-branch | Branch code coverage |
| coverage-branches-total | Total branches |
| coverage-branches-covered | Branches covered |