Code Monkey home page Code Monkey logo

Comments (6)

briangreenery avatar briangreenery commented on August 16, 2024

I just ran into this also. Using --gcov-options '\-lp' fixed it for me too. It seems like gcovr avoids this by parsing the gcov files immediately after running gcov.

from cpp-coveralls.

tysonite avatar tysonite commented on August 16, 2024

Unfortunately, adding --gcov-options '-lp' does not work for me. I tried this proposal in my project tysonite/asn1-complier, but I still got incomplete coverage information for header files (.hh).

Comparing the results of code coverage of local "lcov" and "cpp-coveralls" / coveralls.io show different results.

from cpp-coveralls.

ptomulik avatar ptomulik commented on August 16, 2024

Did you noted the backslash '' before '-lp'? I remember, it was important (but can't recall how it affected the output at the moment).

from cpp-coveralls.

tysonite avatar tysonite commented on August 16, 2024

Yes, it is a misprint in my previous comment. I did similar what you wrote in a top post, look here: https://github.com/tysonite/asn1-compiler/blob/master/.travis.yml

from cpp-coveralls.

briangreenery avatar briangreenery commented on August 16, 2024

@tysonite Looking at your travis file, it looks like you're excluding all CMakeFiles directories and the tests directories. However, that's where all of the coverage files get output to, and the --exclude option will prevent cpp-coveralls from including any coverage files found in those directories. I think if you remove those excludes it should pick up everything. Like, here's where the coverage files end up for your project.

Maybe the --exclude option should be changed to only work on the source file path and not the path of the .gcno file?

from cpp-coveralls.

tysonite avatar tysonite commented on August 16, 2024

@briangreenery, thank you for your help and time. I removed all "--exclude" options from cpp-coveralls command line and now see the full coverage report.

I will need to refine .travis.yml somehow in order to remove unneeded files from the overall report. However, it is not clear for me when I look at the README.md that ".gcno" files will be excluded, I thought that final coverage report will not include statistics for the excluded file/directory.

from cpp-coveralls.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.