After compiling with CMake with the --coverage flags and starting my boost unit test programs, files with the extensions .cpp.gcda and .cpp.gcno are created. If I run gcovr, it claims that it cannot find .gcno files (error message ".gcno: cannot open graph file"). I could move all the output files, but that would be really uncomfortable / stupid.
Other people's related problems can be solved with CTest, but since I use Jenkins, I would like to stick with gcovr and use the output of cobertura xml.
Ps. Maybe I just need to ask: how do I combine CMake with gcovr?
source
share