[ros-users] Test Coverage?

Fazzari, Kyle R CIV NSWCDD, G82 kyle.fazzari at navy.mil
Mon Jul 7 15:18:59 UTC 2014

I've been making good use of Google Test in my ROS projects (Fuerte, currently). I'm interested in looking at my code coverage, so I've been playing with using gcov etc. I'm not having any luck getting it to work, and I'm curious if others have.

I added set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0 -fprofile-arcs -ftest-coverage") to my CMakeLists.txt file, but when I run "make test" no gcov data is generated anywhere that I can see.

Does anyone have any experience using these three tools together (ROS, gtest, gcov)?

Kyle Fazzari
Computer Engineer

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5611 bytes
Desc: not available
URL: <http://lists.ros.org/pipermail/ros-users/attachments/20140707/258956ec/attachment.p7s>

More information about the ros-users mailing list