如何在Qt(MinGW)中使用bullseye?
我在 Qt 中有一个项目,它由一组项目组成。项目是通过 MinGW 构建的,它不会创建任何 .cov 文件。 它仍然不会创建 *.con 文件,
C:\Program Files\BullseyeCoverage\bin;%PATH%
我安装了 bullseye 并启用了覆盖构建,但如果我尝试设置路径变量(例如构建不断失败),
gcc: CreateProcess: No such file or directory
我总是得到构建整个项目的文件如下:
d:\QtSDK\Desktop\Qt\4.7.4\mingw\bin\qmake.exe Simulator.pro -r -spec win32-g++ "CONFIG+=release"
PATH=D:\QtSDK\mingw\bin\;%PATH%
D:\QtSDK\mingw\bin\mingw32-make -f ./Makefile
如何测量代码覆盖率?请帮忙。
I have a project in Qt which consists of the set of projects. Projects is building via MinGW and it does not create any .cov file.
I installed bullseye and enabled coverage build but it still does not create *.con file if I try to set path variable like
C:\Program Files\BullseyeCoverage\bin;%PATH%
the build is constantly failing I always get
gcc: CreateProcess: No such file or directory
The file to build whole project is following :
d:\QtSDK\Desktop\Qt\4.7.4\mingw\bin\qmake.exe Simulator.pro -r -spec win32-g++ "CONFIG+=release"
PATH=D:\QtSDK\mingw\bin\;%PATH%
D:\QtSDK\mingw\bin\mingw32-make -f ./Makefile
How can I measure code coverage? Please help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果有人对这个问题感兴趣 - 我已经弄清楚了。
这是一个解决方案 -
要在 gcc 编译器之前设置牛眼拦截器,只需替换变量
此变量应在 *.pro 文件或 gcc 配置文件中定义,该文件位于
您还需要设置环境变量:
If somebody interested in this question - I already figured it out.
Here is a solution -
To set bullseye interceptors before your gcc compiler just replace variables
This variable should be defined in *.pro file or in gcc config file, which is located in
You also need to set environment variable: