Slack integration with GitLab + Gauge

226 views
Skip to first unread message

T.J. Maher

unread,
Jun 19, 2018, 10:41:14 PM6/19/18
to getgauge
Slack is connected via webhooks to a GitLab project I am running at work. 

Whether 50 out of 50 test pass or 40 out of 50, I would like that information to be pushed to Slack. 

How could I do it, get that information of how many tests passed or failed into the Slack channel notifying others about the status of the tests?

Apoorva G A

unread,
Jun 20, 2018, 4:37:51 AM6/20/18
to getg...@googlegroups.com
Hi,

You can get the info of how many tests passes or failed using the sample reporting plugin
Please follow the instruction to build and use the plugin here.

Once you have got the info of tests passed/failed, you can use the slack APIs to notify about the status of tests or preferred way is to use the CI/CD server to send the slack notification.

--
You received this message because you are subscribed to the Google Groups "getgauge" group.
To unsubscribe from this group and stop receiving emails from it, send an email to getgauge+u...@googlegroups.com.
To post to this group, send email to getg...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/getgauge/1e9a1071-1857-440a-bd91-3606cc6bc71d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Regards,
Apoorva G A

Apoorva G A

unread,
Jun 20, 2018, 6:40:03 AM6/20/18
to getg...@googlegroups.com
The easier way would be to use XML report to get the test execution statistics. 
XML report creates JUnit XML test result document that can be read by tools such as Go, Jenkins and these tools(CI/CD) can be used to send the slack notification.

Reply all
Reply to author
Forward
0 new messages