tiffany352 / rink-rs

Unit conversion tool and library written in rust

Home Page:https://rinkcalc.app/about

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Code coverage is not being updated

mkroman opened this issue · comments

This is just a heads up that kcov is not being run in CI

I used your repo as a template when adding code coverage to my own tests and ended up with mkroman/webalert@77ce8b4 as I had several issues with your old approach - the biggest one being that when my crate is a lib, it doesn't seem to just dump the tests in target/debug/<test>, but instead dumped it as executables in target/debug/deps/… along with the built crate bins.

This created a new problem - I couldn't distinguish between tests and the CLI bin, and kcov would run and show code coverage for the failure path of my CLI despite it being untested.

That's when I found cargo-kcov which parses the output of cargo test to distinguish tests from crate bins and then runs them. But unfortunately it seems a lot slower to run than it should be.