How to see testing-coverage using gcov? #419
Unanswered
PhilippRados
asked this question in
Q&A
Replies: 1 comment 5 replies
-
Last time I checked I did not have issues with gcov. A couple of questions:
|
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm sorry if this is the wrong place to ask this question but I couldn't find any other way. I want to see the code coverage my tests have on the source files they test. Since I have multiple test-files I have to link them together first to combine them into one executable. However when I add the gcc-coverage flags it only produces the .gcno files for the single files and not the compiled executable. Plus it doesn't enter the underlying functions to test rather just the coverage in the testing files which is unnecessary. This is my Makefile:
I want the coverage to be for the /tests/bin/compiled_tests - file which includes all tests and then to be able to see how much these tests cover in the actual source-files.
Beta Was this translation helpful? Give feedback.
All reactions