curl / Mailing Lists / curl-library / Single Mail

curl-library

RE: code coverage and its usefulness

From: Max Dymond via curl-library <curl-library_at_cool.haxx.se>
Date: Fri, 2 Jun 2017 08:46:32 +0000

> Ideally we'll get this integrated into travis and our CI somehow going forward, so if there's someone who has experience of that I can use a little help.

Assuming you've already set up the repository in coveralls, you need a .travis.yml file which will push coverage results to coveralls. There appears to be a few methods that can be used for C code:

- https://github.com/eddyxu/cpp-coveralls is the method which is linked by coveralls.io themselves.
- https://gronlier.fr/blog/2015/01/adding-code-coverage-to-your-c-project/ : an alternative method using coveralls-lcov.

Either one ought to be straightforward to try in a branch.

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-06-02