I am using gcov.
Now my setup is quite complicated, and I need to think about its description:
I used the MinGW distribution by stl, available at nuwen.net for gcc (g ++) and gcov. This gives me some degree of portability.
I am building a test application using scons and a batch file to build and run it to see if it passes.
Then I commit the code for version control, and the Jenkins CI server running on my own machine picks it up and still uses scons, compiles it, but this time uses the --coverage flag. It launches a test application that this time outputs * .gc ?? files. Then I run gcov once, but tell it where all the files that create the many * .gcov files are located. In the past, I used the python script gcovr.py , but since then I wrote my own to scan all * .gcov files and print all lines that were not covered.
I am not sure about the open-source status of all these pieces, but I know that they are free.
quamrana
source share