Skip to content
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

CodeCoverage is not running for my .c file under test, generating a coverage for test files. #37

Open
ablinux opened this issue Jul 26, 2019 · 0 comments

Comments

@ablinux
Copy link

ablinux commented Jul 26, 2019

Hi

I used the CodeCoverage.cmake, my project folder structure is something like this
src/
application1/
app1.c
app1.h
application2/
app2.c
app2.h
test/
application1/
app1_test.cpp
build/
cmakeList.txt

I used CodeCoverage module as it is and it works, but the problem is it generates the coverage for app1_test.cpp, not for the actual file under test which is app1.c

so i modified your CMake module and added the one more parameter which takes my c and replaced ${PROJECT_SOURCE_DIR} to my new parameter and that works for me. does this module is not intended for such type of folder structure?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant