Rust - for Rust

April 11, 2017    rust

While looking for a way to provide code coverage with for Rust, I stumbled upon a solution while reading through Iron.

The solution involves a tool called kcov which is a Linux/OSX code coverage tester for compiled languages.

This tool can be implemented inside a .travis.yml file to push coverage data from a Travis CI  build.

Here is an example .travis.yml file:

Basically all you have to do is run:

Changing “riak-*” for your own project, and everything before that is just to compiled kcov inside the Travis CI environment.

This configuration was used for my Riak Rust Client.

Since the above example uses master.tar.gz, I recommend you fork the original repo and use your fork for stability.

Happy Coding!