Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the best C++ code coverage tool that works with templates?

I have used gcov for testing code coverage, but when it comes to templated c++ code it doesn't work so well. I use boost::spirit extensively and gcov seems to simply ignore templated spirit code.

Also I am wondering if there is a coverage tool to show how threads interacts with each other, pinpointing the possible branches/race conditions/execution flows actually executed.

like image 746
fantasticsid Avatar asked Oct 10 '11 08:10

fantasticsid


People also ask

What is the tool used for to check test coverage?

Qase. Qase is also a cloud computing-based project management tool, which works excellently for determining the Test Coverage periodically identified for the Test Management process.

Which is the opensource code coverage tool that works well with both Maven and Jenkins?

JaCoCo – This is a free Open Source code coverage tools for Java,It is combined with the various tools such as Ant,Maven,Gradle,Jenkins,Visual Studio,etc.


2 Answers

TestCocoon is a great tool to try, better than gcov with good tools and report facilities. As templates are compile-time beasts, I'm not sure what coverage information you want to get ?

my two cents

like image 56
neuro Avatar answered Sep 28 '22 03:09

neuro


I work on a large product and we used a third party app called BullsEye for coverage testing. It worked wonders.

like image 32
Aditya Kumar Pandey Avatar answered Sep 28 '22 04:09

Aditya Kumar Pandey