cron-mon-io / cron-mon

A tool for monitoring cronjobs, written in Rust
MIT License
3 stars 0 forks source link

`cargo-llvm-cov` #52

Open howamith opened 2 months ago

howamith commented 2 months ago

Take a look at https://github.com/taiki-e/cargo-llvm-cov, hopefully will be less manual than what we're doing now!

Also look at https://github.com/taiki-e/coverage-helper, and see if we can run tests separately! via https://github.com/taiki-e/cargo-llvm-cov?tab=readme-ov-file#merge-coverages-generated-under-different-test-conditions

Also worth looking at https://github.com/xd009642/tarpaulin.

howamith commented 2 months ago

cargo llvm-cov seems promising other than excluding code from coverage due to #[cfg(coverage(off))] being unstable, but it looks like it's due to be stabilised in v1.80.0 of the Rust language itself but looks like it's nearly ready.

tarpaulin didn't suffer from this same problem but didn't seem as good for actual code coverage testing, marking certain lines as missing despite them having code coverage.

cargo-llvm-cov seems like the better option but not until [cfg(coverage(off))] is made stable, so holding off on this for now.