在使用mocha的测试脚本中从webhook接收通知事件 [英] Receive notification event from webhook in test script which uses mocha

查看:92
本文介绍了在使用mocha的测试脚本中从webhook接收通知事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在编写集成测试,我们希望从webhook接收事件。有什么方法可以做到吗?

We are writing integration test in which we want to receive event from webhook. Is there any way it can be done ?

推荐答案

最后我用http来启动web服务器监听事件并在测试用例时停止服务器执行。

Finally i started web server using http to listen events and stopping the server once testcases are executed.

这篇关于在使用mocha的测试脚本中从webhook接收通知事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆