ollieb89/Test Results Reporter
Aggregates JUnit XML, Jest JSON, and pytest JSON test results and posts a clean, updateable PR comment with failure details and flaky test detection.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| test-results | Glob patterns for test result files (newline-separated). Supports JUnit XML (.xml), Jest JSON (--json output), and pytest JSON (pytest-json-report). | yes | — |
| token | GitHub token used to post PR comments and set annotations. | yes | ${{ github.token }} |
| previous-results | Path to a results snapshot JSON file from a previous run. When provided, tests that failed this run but passed previously are marked as flaky. Use actions/cache or actions/upload-artifact to persist between runs. | no | "" |
| results-output | Path where the current run results snapshot will be written (for use as previous-results in the next run). | no | test-results-previous.json |
Outputs
| name | description |
|---|---|
| passed | Number of passed tests. |
| failed | Number of failed tests. |
| skipped | Number of skipped tests. |
| total | Total number of tests. |
| flaky-count | Number of flaky tests detected (failed this run, passed previously). |
| results-json | Path to the saved results snapshot JSON file. |