Within the earlier put up we have now seen the combination of take a look at outcomes to microsoft groups and slack.
On this article, we’ll examine on reporting your take a look at outcomes to Google Chat.
Publishes take a look at outcomes to Microsoft Groups, Google Chat & Slack
Take a look at Outcomes Reporter is a command line device that may publish take a look at outcomes to quite a few communication platforms.
Steps
- Create an incoming webhook url for a chat house – docs
- Create a config file both in
json
orjs
format.
{
"studies": [
{
"targets": [
{
"name": "chat",
"inputs": {
"url": "<chat-incoming-webhook-url>"
}
}
],
"outcomes": [
{
"type": "junit",
"files": ["path/to/junit-results.xml"]
}
]
}
]
}
- Set up Node.js in your system.
- Run this command to report the outcomes.
npx test-results-reporter publish -c path/to/config.json