Add coverage check to Qt application

I am trying to add static static static to my Qt project, but I cannot get the result.

I download the coverage check build tools and use the following command line:

cov-build --dir cov-int make

      

Creates the following log:

...
my build log
...
[WARNING] No files were emitted. This may be due to a problem with your configuration
or because no files were actually compiled by your build command.
Please make sure you have configured the compilers actually used in the compilation.
For more details, please look at:
    /Users/martin/dev/builds/ConsoleTest01-Desktop_Qt_5_3_clang_64bit-Debug/cov-int/build-log.txt

      

How can I go further?

I am using Qt 5.3.2 under MacOS 10.9.

+3


source to share


2 answers


I didn't read the docs carefully enough: https://scan.coverity.com/download?tab=cxx First I had to set up coverage by running:



cov-configure --comptype clangcxx --compiler clang++ --template

      

+5


source


You need to run qmake first, then you can run cov-int command with make.



I found it easier to run cov-int in my folder created by Qt-Creator.

0


source







All Articles