mocha error reporters:当错误具有一些有意义的额外信息时mocha error reporters会将完整的错误对象作为JSON包含在测试报
() 摩卡错误报告者 当测试由于意外错误而失败时,mocha-error-reporters会将完整错误以JSON格式附加到测试报告中。 测试报告示例 1 passing (5ms) 1 failing 1) Test Example Test with error: Error: Pow! at Context.it (test/testData/testExample.js:9:17) Full Error: { "additionnalAttribute": "The key to understand this bug", "name": "Error", "message": "Pow!", "stack": "Error: Pow!\n at Context.it (test/testDa
下载地址
用户评论