rust-pcap / pcap

Rust language pcap library
Apache License 2.0
620 stars 142 forks source link

Add a code coverage workflow #232

Closed Wojtek242 closed 2 years ago

Wojtek242 commented 2 years ago

Code coverage is pretty low, but the first step to improving it is to know that.

Closes #211

Wojtek242 commented 2 years ago

The reason for using cargo install to install grcov is because the binary provided by grcov produces badges that show 0% as code coverage regardless of actual coverage. This is because the latest release is v0.8.7 from 11 Feb 2022. However, the fix to the calculation (https://github.com/mozilla/grcov/pull/782) is only included from 28 Feb. Despite there being tags for 0.8.8 and 0.8.9, no release is available for those versions.