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

0 of 0 relevant lines covered: am I not using correct arguments? #137

Open
louis-langholtz opened this issue Jan 29, 2019 · 2 comments
Open

Comments

@louis-langholtz
Copy link

Thanks for this project. I'd love to use it!

Had previously been using lcov successfully and gotten my PlayRho project to 99% unit test coverage. The coveralls.io site appears to now be recommending using this project instead however so I'd like to switch to it. I'm having trouble getting it to work though.

Hoping someone can give me a hand with this and spot what I'm doing wrong in my latest pull request attempt. Presumably I'm not using all the correct command line arguments to get the coverage report to recognize coverage. You can see what I've tried in my latest pull request at the end of the .travis.yml file.

My project uses CMake so I presume I need the --build-root $BUILD_ROOT option with $BUILD_ROOT set to the directory in which cmake is being run in. That alone at least didn't seem to make things work however. Output from coveralls can be found beginning at line 5011 of my travis-ci.org job report.

Thanks a bunch for any help!!

@louis-langholtz louis-langholtz changed the title 0 of 0 relevant lines covered: presumably I'm not using correct arguments 0 of 0 relevant lines covered: am I not using correct arguments? Feb 25, 2019
@louis-langholtz
Copy link
Author

From my travis home directory with:

coveralls --gcov /usr/bin/gcov-8 --root $BUILD_ROOT --include PlayRho --exclude UnitTests --exclude-pattern "/usr/.*" --gcov-options '\-lp'

The cpp-coveralls script creates .gcov files with some lines executed in some files but then seems to try and do a git command that results in the message: fatal: Not a git repository (or any of the parent directories): .git. That makes sense given that I'd set the --root argument to be where CMake builds. If I change the --root however to the git source root however, then the script seems unable to notice any coverage at all; though it doesn't issue a fatal error message.

Another problem seems to be that the --exclude-pattern "/usr/.*" doesn't seem to exclude /usr/include files.

Any suggestions?

@louis-langholtz
Copy link
Author

For clarity, my project is set up as follows on travis:

  • Build is in /home/travis/build/louis-langholtz/PlayRho-Build.
  • Source is in /home/travis/build/louis-langholtz/PlayRho.

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