[英]Code Coverage for Visual Studio 2017 Community with C++
Are there any plugins for visual studio 2017 which enable to calculate unit test code coverage with C++? Visual Studio 2017 是否有任何插件可以使用 C++ 计算单元测试代码覆盖率?
I only found OpenCppCoverage: https://marketplace.visualstudio.com/items?itemName=OpenCppCoverage.OpenCppCoveragePlugin我只找到了 OpenCppCoverage: https ://marketplace.visualstudio.com/items ? itemName = OpenCppCoverage.OpenCppCoveragePlugin
but it seems to be outdated / not working.但它似乎已经过时/不起作用。
Other than that it seems like there are only Code coverage plugins for .Net-Languages but not C++除此之外,似乎只有 .Net-Languages 的代码覆盖插件,而不是 C++
Are there any other options (besides upgrading to MSVC Enterprise)是否还有其他选择(除了升级到 MSVC Enterprise)
I recently tested CPPCoverage , an open source and free extension that works perfectly to perform code coverage of native Visual C++ unit tests.我最近测试了CPPCoverage ,这是一个开源和免费的扩展,可以完美地执行本机 Visual C++ 单元测试的代码覆盖率。
It is a visual extension (VSIX) and provide details reports.它是一个可视化扩展 (VSIX) 并提供详细报告。 Once installed, Right-click in solution explorer on the test or application project and click "Run code coverage".安装后,在解决方案资源管理器中右键单击测试或应用程序项目,然后单击“运行代码覆盖率”。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.