lfreleng-actions/🧪 JUnit Test Report
Summarise JUnit XML test results in the job summary with counts and an uploaded report artefact
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| report-paths | Globs matching JUnit XML report files (whitespace or newline separated) | no | **/target/surefire-reports/*.xml **/target/failsafe-reports/*.xml **/build/test-results/**/*.xml |
| summary | Write a results table to the job summary | no | true |
| artifact-upload | Upload the matched report files as a workflow artefact | no | true |
| artifact-name | Name for the uploaded artefact (defaults to junit-test-reports-<job>) | no | "" |
| fail-on-failure | Exit with a non-zero status when the results contain failures or errors | no | false |
Outputs
| name | description |
|---|---|
| total | Total number of tests across all report files |
| passed | Number of tests that passed |
| failures | Number of failed tests |
| errors | Number of tests that errored |
| skipped | Number of skipped tests |
| time | Total test execution time in seconds |
| report_count | Number of JUnit XML report files parsed |
| result | Overall result: 'success', 'failure', or 'none' (no reports found) |
| artifact_name | Name of the uploaded report artefact (empty when not uploaded) |