pkgcraft / pkgcraft

highly experimental tooling ecosystem for Gentoo
https://pkgcraft.github.io
MIT License
38 stars 3 forks source link

look into switching from tarpaulin to grcov for code coverage support #6

Closed radhermit closed 11 months ago

radhermit commented 3 years ago

Once support for it enters a stable rust release.

radhermit commented 2 years ago

Support for tarpaulin was dropped in https://github.com/pkgcraft/pkgcraft/commit/6aa958cfc977cf5b0316de6c4126de4760ef34ae mostly due to CI hangs.

radhermit commented 2 years ago

It may be possible to re-enable code coverage soon since it looks like -C instrument-coverage support is trending towards stabilization. Beyond that, grcov support can be enabled by following instructions similar to those outlined at https://marco-c.github.io/2020/11/24/rust-source-based-code-coverage.html.

radhermit commented 2 years ago

It's now possible to use llvm-tools instrument-coverage support in stable rust along with llvm-cov and nextest via cargo llvm-cov nextest. The final step for CI would be to generate some coverage data file that codecov can consume.

radhermit commented 11 months ago

Coverage is now done via cargo llvm-cov in https://github.com/pkgcraft/pkgcraft/commit/29432c25061029d154fb49bc8eb8e696a170c8fb.