如何使用增强单元测试打印测试摘要 [英] How to print test summary using boost unit test

查看:156
本文介绍了如何使用增强单元测试打印测试摘要的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法打印在boost单元测试中运行的测试的摘要。特别是,可以列出失败的测试吗?

Is there a way to print a summary of the tests run in boost unit test. In particular, can a listing of the failed tests be made?

我很难在输出中定位失败的测试(尤其是当测试有自己的输出时)。我已经设置BOOST_TEST_LOG_LEVEL以显示进入/退出,但这不足以定位失败的测试。

I'm having a hard time locating failing tests in the output (especially when the tests have their own output). I already set BOOST_TEST_LOG_LEVEL in order to show enter/exit, but that isn't enough to locate the failing tests.

推荐答案

use --report_level =详细

use --report_level=detailed

它会报告所有的拖尾测试用例和套件

It will report all your tailing test cases and suites

这篇关于如何使用增强单元测试打印测试摘要的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆