japaric / trust

Travis CI and AppVeyor template to test your Rust crate on 5 architectures and publish binary releases of it for Linux, macOS and Windows
Apache License 2.0
1.26k stars 59 forks source link

Feature request: code coverage #67

Open clarfonthey opened 7 years ago

clarfonthey commented 7 years ago

It would be nice to support uploading coverage to coveralls and other services.

wdv4758h commented 7 years ago

I think the problem will be how do you collect coverage information, at this time kcov may be the choice (not sure if we have other choice).

Ref: http://sunjay.ca/2016/07/25/rust-code-coverage

juanibiapina commented 6 years ago

There are several updates to this blog post. Do you think this is easily doable now ?

nbigaouette commented 5 years ago

tarpaulin could be used for this, but it's really slow (even on my machine). It seems to rebuild the project twice with nightly, thus breaking any possible cache usage.

If working, tarpaulin seems more ergonomic. kcov can, in addition, generates an html report that can be inspected locally.