I am using QT Creator to work on a medium-sized project in C++.
The project structure basically looks like this
Project
- Group A
- Library A1
- Group B
- Library B1
- Library B2
- ...etc
Test
- LibA1_Test
- LibB1_Test
- LibB2_Test
- ...etc
- Group A
The libraries are tested by the executables in the test project. I've managed to compile the tests themselves with gcov enabled, and produce code coverage reports with lcov, but all that they were showing the coverage for were the test cases, not the actual code that I'm testing. I've also tried compiling the static libraries with gcov as well, but when I run the tests against those libraries it does not generate any of the gcov output files.
How could I generate the gcov output files by linking my project libraries against the tests? I want to see if there are any gaps in my unit tests.