c++ - Catch2 - output to console and file
问题描述
I can run a Catch executable with -o junit --output catch_results.xml
to generate an xml report.
Is there some way to both generate an xml report, and also have the console output?
解决方案
Assuming you are asking for having a JUnit output in a file and the standard console reporter at stdout, there is no way to do that.
Catch2 used to support multiple reporters, but there was no support for having them write their output to separate files/outputs, which meant that the feature was unusable and was removed until some point in the future.
推荐阅读
- gtk3 - 在图像上添加图像/图标
- python - 尽管我已经安装了 Pattern,但无法从“gensim.utils”导入名称“lemmatize”
- report - 盈透证券输出多天 PnL 数据
- ios - 沙箱环境返回 21003 状态码进行收据验证
- c - 在C中的一般树中插入孩子
- ubuntu - Primusrun/Optirun 据称无法定位/打开配置目录:“/etc/bumblebee/xorg.conf.d”
- node.js - ExpressJS res.json({}) 和 res.render({})。如何使用 res.json({}) 将值传递给 EJS 模板
- java - 如何将 Mqtt5 有效负载转换回 JSON
- android - 如果我在不同的手机上运行我的应用程序,SQLite 数据库信息是否仍然有效并显示在不同的手机上?
- c - 如何在 GLPK 中读取 dst 文件