JUnit Plugin
JUnit is a testing framework. Test results can be aggregated to a xml report, which this plugin is able to read.
Features
The Swingletree JUnit Plugin offers following functionalities:
- Extracts and attaches information from JUnit reports to Commits and Pull-Requests in GitHub.
Processed data is persisted to ElasticSearch (if enabled) and can be processed to reports using Kibana or Grafana.
Sending a scan report to Swingletree
A Swingletree webhook is published when the JUnit Plugin is enabled. It accepts a JUnit report in XML format as a payload and needs some additional query parameters to link the report to a GitHub repository:
POST /report/JUnit?org=[GitHub Organization]&repo=[Repository name]&sha=[Commit SHA]&branch=[branch]
It is recommended to protect your webhook endpoint. If you enabled webhook protection you will need to provide the authentication credentials via Basic Authentication.
Swingletree will process the report and send a Check Run Status with the context test/junit
to the given GitHub coordinates.
- Previous
- Next