-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncovered files not reported when using gcov 4.7 #33
Comments
I can confirm this issue. I have tried this with:
This is a serious problem to me becuase it is not so easy to workaround it. But maybe it is more related to gcc/gcov: Possible workaround ideas (not just for gcovr):
|
It isn't clear that there is a gcovr issue to be resolved here. I don't anticipate creating empty gcda files within gcovr, which seems the only gcovr-centric solution to the inconsistent support of gcov for uncovered files. I'm closing this, but please reopen if you have a specific request for gcovr functionality. |
Did anyone manage to work around this?
|
From the options listed above, I selected "Force to include all header files into the test executable":
|
gcovr 3.1 does not include uncovered files in its report when used in conjunction with gcov 4.7.2 (on Ubuntu 12.10).
From examination, it seems the issue might stem from gcov 4.7.2 not producing .gcov files for source files that do not have corresponding .gcda files.
Separately invoking gcov on an uncovered source file produces output indicating that no .gcov file is generated. E.g.:
gcov src/Foo.cpp --branch-counts --branch-probabilities --preserve-paths --object-directory build/src
produces output containing:
Where Foo.cpp is not exercised by test code.
The text was updated successfully, but these errors were encountered: