DEV Community

Cover image for Report Automation Test Results to Google Chat
Anudeep
Anudeep

Posted on

Report Automation Test Results to Google Chat

In the previous post we have seen the integration of test results to microsoft teams and slack.

In this article, we will check on reporting your test results to Google Chat.

GitHub logo test-results-reporter / reporter

Publishes test results to Microsoft Teams, Google Chat & Slack

logo

Test Results Reporter

Publish test results to Microsoft Teams, Google Chat, Slack and many more.


Build Downloads Size

Stars


Targets

slack teams chat

Extensions

reportportal quickchart hyperlink mentions

Test Results

testng junit cucumber mocha xunit


Sample Reports


teams-summary-report

slack-summary-report



Documentation


Need Help

We use Github Discussions to receive feedback, discuss ideas & answer questions. Head over to it and feel free to start a discussion. We are always happy to help 😊.

Support Us

Like this project! Star it on Github . Your support means a lot to us.

Flask icons created by Freepik - Flaticon




Test Results Reporter is a command line tool that can publish test results to numerous communication platforms.

Steps

  • Create an incoming webhook url for a chat space - docs
  • Create a config file either in json or js format.
{
  "reports": [
    {
      "targets": [
        {
          "name": "chat",
          "inputs": {
            "url": "<chat-incoming-webhook-url>"
          }
        }
      ],
      "results": [
        {
          "type": "junit",
          "files": ["path/to/junit-results.xml"]
        }
      ]
    }
  ]
}
Enter fullscreen mode Exit fullscreen mode
  • Install Node.js in your system.
  • Run this command to report the results.
npx test-results-reporter publish -c path/to/config.json
Enter fullscreen mode Exit fullscreen mode

Top comments (0)