Skip to content

neochae1/upload-test-result

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

JUNIT Slack Reporter with coverage

Github Action to send JUnit results to Slack.

What it does!

This action will:

  • Merge JUnit test results of individual xml
  • Parse Coverage report
  • Send JUnit test result to slack
  • (Optional) Send Coverage report to slack

What you need!

  • Slack Incomming URL

Setting up the action

Environment Variable Example Description Required?
JUNIT_TEST_RESULTS build/test-results/test Path (relative to workspce directory) to JUnit report Y
JACOCO_REPORTS build/reports/jacoco/test/jacocoTestReport.xml File Path (relative to workspce directory) to Coverage report Y*
SLACK_URL https://hooks.slack.com/services/XXXXXXXXXXXXX Slack Incomming Webhook URL Y

Sample Workflow section

    - name: JUnit Slack Reporter with Coverage
      uses: neochae1/[email protected]
      env:
        JUNIT_TEST_RESULTS: build/test-results/test
        JACOCO_REPORTS: build/reports/jacoco/test/jacocoTestReport.xml
        SLACK_URL: ${{ secrets.SLACK_URL }}

Slack message example

image

About

Github Action to send JUnit results to Slack.

Resources

License

Stars

Watchers

Forks

Packages

No packages published