Comments (6)
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.
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.
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.
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.
@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.
@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)
- ValueError: invalid literal for int() with base 10: '917*' HOT 3
- Where is args.lcov_file being set?
- unable to generate report
- pip install failure on ubuntu/trusty64 HOT 5
- Best method for implementing with Boost Unit Test Cases
- Cannot find files due to odd path creation HOT 1
- 0 of 0 relevant lines covered: am I not using correct arguments? HOT 2
- Exclusion regexps do not appear to work HOT 2
- Variable interpolation into shell commands is unsafe HOT 1
- Is this project dead? HOT 1
- circleci not supported HOT 1
- --include or --exclude options doesn't seem to work at all HOT 3
- FIleNotFoundError with invalid path HOT 1
- YAMLLoadWarning HOT 1
- Cannot open source file
- Failed to see coverage results on Coveralls HOT 1
- Deprecation warning due to invalid escape sequences
- FileNotFoundError for not existing file
- github actions not showing the correct files on coveralls website
- feature request: carryforward flags
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cpp-coveralls.