Code coverate report using lcov and gcov #105
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
To generate the code coverage report you need first to install gcov and lcov (the configure script checks for them) and then execute
an URL pointing to the generated report will be displayed
After every successful travis-ci build the code coverage report will be send to the coveralls.io. I've also added a badge in the Readme
If you don't like coveralls.io I will remove this commit but if you decide to merge it you need to create a new account in coveralls.io (it's free for opensource), configure the asn1c project from your github repo, get the coveralls repo token and add it to your travis-ci build enviroment (COVERALLS_REPO_TOKEN).
You also need to change the in the coveralls.io URL in the Readme.md
https://coveralls.io/repos/github/velichkov/asn1c/badge.svg?branch=master
Some other changes:
skeletons code coverage. When the skeleton files are copied the lcov will
report coverage for each copy separatly.
GCC prior to 4.8 does not supprot -Wpedantic.
See https://gcc.gnu.org/gcc-4.8/changes.html
The travis-ci currently builds with gcc-4.6.3