Extensions
Extensions enhance the capabilities of targets by adding additional behavior.
Supports
Extension types.
✅ CI Info
✅ Hyperlinks
✅ Mentions
✅ Metadata
✅ Percy Analysis
✅ Custom
Syntax
json
{
"name": "hyperlinks",
"condition": "fail",
"inputs": {
"links": [
{
"text": "Build Logs",
"url": "<build-logs-url>"
}
]
}
}
name
(string) - name of the extension.hyperlinks
,mentions
,report-portal-analysis
,report-portal-history
,quick-chart-test-summary
,percy-analysis
,custom
condition?
(condition) - condition of execute the extension.hook?
(string) - workflow hook to run.start
,post-main
,end
inputs?
(object) - custom inputs to run the extension.title?
(string) - title of the extension to be displayed. (applicable for most extensions)title_link?
(string) - attaches a clickable link to the title. (applicable for most extensions)
Config
Sample config file.
json
{
"targets": [
{
"name": "slack",
"inputs": {
"url": "<incoming-webhook-url>",
"publish": "test-summary"
},
"extensions": [
{
"name": "report-portal-analysis",
"inputs": {
"url": "<report-portal-base-url>",
"api_key": "<api-key>",
"project": "<project-id>",
"launch_id": "<launch-id>"
}
}
]
}
],
"results": [
{
"type": "testng",
"files": ["path/to/testng-results.xml"]
}
]
}