qt - How use QT Creator and Squish COCO
问题描述
I'm writing unit tests, but I would like to visualize the test coverage, my project is in QT, I have read a lo,t but I don't understand how to apply it to my code!! What are the specific steps? Could you send and code example?
解决方案
You won't have to necessarily modify much of your code. The coverage will be measured once you have enabled the "instrumentation" of your project. The necessary steps are documented specifically for Qt Creator projects or more generically for QMake projects.
In case you are using Qt unit test framework you may want to look at the documented QTestLib integration. It will give you coverage numbers for each individual test case. That helps with latter analysis.
推荐阅读
- reactjs - 使用服务器处理反应路由器
- c# - 动态添加 UnmanagedFunctionPointerAttribute 到委托
- numpy - Pycharm 使用 numpy 提供不完整的代码建议
- sql - 我的 CROSSTAB postgres 查询有什么问题?
- spring - 如何禁用 JWT 令牌
- xcode - Mac 上的 Flutter 项目(从 Windows 复制)
- php - HERE REST API 错误:“签名不匹配。授权签名或客户端凭据错误。”
- kubernetes - docker 桌面中的 kubectl Dashboard 需要代理
- svelte - Svelte - 全局导入组件
- c# - DotNet Core:“dotnet test”命令启动 4 个“.Net Core Host”进程,而测试执行只需要其中两个进程