Node.js 我怎样才能得到纽曼&x27;直接在节点程序中生成json报告?
我发现Node.js 我怎样才能得到纽曼&x27;直接在节点程序中生成json报告?,node.js,newman,Node.js,Newman,我发现newman的文档只描述了如何将报告输出到CLI或文件。当我使用node.js中的newman库时,是否有办法直接获取报告json newman.run({ collection: new Collection(collection), reporter: ['json'] // Can I insert a callback function receiving json report here? }, err => {
newman
的文档只描述了如何将报告输出到CLI或文件。当我使用node.js中的newman
库时,是否有办法直接获取报告json
newman.run({
collection: new Collection(collection),
reporter: ['json'] // Can I insert a callback function receiving json report here?
}, err => {
// ...
});
它在回调函数中
summary
中的回调(err,summary)
是我需要的