Github Action to send JUnit results to Slack.
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
- Slack Incomming URL
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 |
- 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 }}