简体   繁体   中英

How to change epilogue of a mocha spec reporter

I'm trying to change epilogue of a reporter so it would be outputting email friendly html. I need to find how to remove chunk from reporter and add <br /> instead of n/ . In addition I use spec reporter.

您需要查找正在创建baseRepoter对象的文件,例如,如果您使用webdriverio,它将是BaseReporter.js(我确定它将始终是BaseReporter.js,但我没有检查其他示例),请在此处查看更多信息: https:/ /mochajs.org/api/mocha.reporters.base如果您也想删除数据块,我建议使用此软件包: https : //www.npmjs.com/package/ansi-html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM