I dimly recall experimenting with gcov in rosbuild (which presumably you're using, given that you're on Fuerte). But, looking at the docs, it seems that there isn't any built-in support. The first that I would do is build verbose (`make VERBOSE=1`) and verify that the required coverage flags are being passed during both the compile and link steps. On Mon, Jul 7, 2014 at 8:18 AM, Fazzari, Kyle R CIV NSWCDD, G82 wrote: > 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 > > > > _______________________________________________ > ros-users mailing list > ros-users@lists.ros.org > http://lists.ros.org/mailman/listinfo/ros-users > _______________________________________________ ros-users mailing list ros-users@lists.ros.org http://lists.ros.org/mailman/listinfo/ros-users