c++ - 有什么方法可以从 Visual Studio 2017 中的 Catch C++ 测试中获取代码覆盖率指标?

标签 c++ code-coverage visual-studio-2017 catch-unit-test

我在 VS 2017 中有一些 C++ 项目 Catch在其中进行测试。 但我无法弄清楚如何获得测试覆盖率指标。

虽然我更喜欢 native VS 解决方案,但我很乐意使用必要的 VS 扩展,但尽我所能 see ReSharper 不支持它:

You are right, neither profiling nor coverage are supported for C++

最佳答案

似乎 Visual Studio 已经通过其分析工具提供了覆盖率指标。参见 this article详情

关于c++ - 有什么方法可以从 Visual Studio 2017 中的 Catch C++ 测试中获取代码覆盖率指标?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44852376/

相关文章:

c++ - 验证器断言失败

c++ - C++ 中的 libcurl 文件发布,可用示例

c++ - 在 C++ 中使用 cin 时使用循环计数被忽略

unit-testing - 是否有将cobertura coverage xml报告合并在一起的方法?

visual-studio-2017 - 重命名系统版本表 Visual Studio SQL 项目中的列

c++ - 设置诊断 :caret from CMakeLists. txt

c++ - 从3D kinect模型中提取人脸

java - Cobertura Maven 插件在 Windows 上失败并显示 "The command line is too long"

c# - 将项目从 VS2015 升级到 VS2017 后 TFS 绑定(bind)无效

code-coverage - 哪些工具可用于使用浏览器自动化测试计算代码覆盖率