-
Notifications
You must be signed in to change notification settings - Fork 6
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
Header files in install directories are filtered out of the results #9
Comments
@crdelsey Are you building with Do you have a simple reproducer? If not, I'll try to create one. Thanks! |
Yes. I'm building with I've created a minimal example project here: You'll see there is one extra line in the base lcov build. Basically, the |
@crdelsey I think I understand now. You expect that since Coverage from package_a tests and coverage from package_b tests to appear as one file, correct?
|
In a perfect world, having full coverage within a single package would be great. But even in a perfect world, running system tests is desirable, and it would be nice to know how much of the code is covered by the system tests as well. Perhaps it would be appropriate to have two modes of operation, a per package report like you currently produce, and a per workspace report, like I am looking for.
I think I see a way to turn off the
Yeah. I guess that is an issue for the |
If I have two packages in my workspace, one defining a class with implementation details in a header file and the other including that header file
Package_b picks up the package_a.h header from the workspace
install
directory. The .gcda file associated withpackage_b.cpp
will refer tomy_ws/install/package_a/package_a.h
However, any coverage data for files listed in the
install
directories is getting filtered out of the lcov-results. Only files inbuild
andsrc
have their data reported.As a result, if
package_a.h
is only executed by cpp files in other packages, no coverage data is reported.The text was updated successfully, but these errors were encountered: