Skip to content

๐Ÿ“ข Action: Publish Test Results

Parse JUnit XML results and post professional, high-fidelity summaries directly into your Pull Request description or comments for immediate team visibility.


[!IMPORTANT] The Publish Test Results action transforms raw execution data into aesthetic, human-readable intelligence. By injecting success rates, durations, and failure traces directly into GitHub, it eliminates the need for developers to dig through raw console logs.

๐Ÿš€ Key Impact

  • ๐Ÿ“Š Aesthetic Summaries: Converts technical JUnit XML files into clean, human-readable Markdown tables.
  • ๐Ÿ’ฌ PR Integration: Intelligently injects results into your PR description or posts updatable comments.
  • ๐Ÿ”„ Step Summary: Automatically appends the test suite results to the GitHub Actions Job Summary.
  • ๐Ÿ› ๏ธ Flexible Targeting: Choose exactly where you want the feedback to appear: description or comment.

๐Ÿ› ๏ธ Configuration

Input Required Default Description
reports-path Yes - Path to the directory containing JUnit XML reports.
github-token Yes - GitHub Token for API interactions.
title No Test Execution Summary Custom title for the published report.
target No description Where to publish: description or comment.

โšก Quick Start

Drop this snippet into your workflow:

steps:
  - name: ๐Ÿ“ข Publish Test Results
    uses: carlos-camara/qa-hub-actions/publish-test-results@main
    if: always()
    with:
      reports-path: "junit-results/"
      github-token: ${{ secrets.GITHUB_TOKEN }}
      target: "comment"

[View Full Wiki](https://carlos-camara.github.io/qa-hub-actions/actions/publish-test-results/)