taiki-e / cargo-llvm-cov

Cargo subcommand to easily use LLVM source-based code coverage (-C instrument-coverage).
Apache License 2.0
933 stars 57 forks source link

Add support for printing out a summary #77

Closed Cogitri closed 3 years ago

Cogitri commented 3 years ago

Hello,

I'm currently using cargo-llvm-cov on Gitlab CI. Gitlab CI has a neat feature where it can display the coverage percentage right next to a change if it can parse it from the CI log via Regex. As such it'd be nice if there was a command similar to llvm-cov report which just prints a quick overview of the per-file coverage and the total coverage.

taiki-e commented 3 years ago
Cogitri commented 3 years ago

Oh I didn’t realise I can run cargo llvm-cov without an argument like —html or —text. running it like this is exactly what I needed, thanks!