alice tester:用于自动测试Node.js中的Alice技能的库 源码
爱丽丝测试仪 一个用于自动测试Alice在Node.js中的技能的库。 允许您根据模拟用户消息并检查技能响应。 内容 user.tapImage(标题,[extraProps]) 用户响应 用户主体 用户身份 user.sessionId user.webhookUrl 用户历史 检查响应时间 检查响应的大小 检查停用词 调试测试 执照 安装 npm i alice-tester --save-dev 使用 如果具有该技能的Web服务器在http://localhost:3000本地运行,则测试可能如下所示: const assert = require ( 'assert' ) ; const User = require ( 'alice-tester' ) ; it ( 'should get welcome message' , async ( ) => { c
下载地址
用户评论