docker run -it --rm --security-opt seccomp=unconfined celeo/rust_and_kcov
- Launch a container
- Clone your git repo somewhere
- Run
cargo test --no-run
in the project directory - Run
kcov cov --exclude-pattern=/.cargo target/debug/your_project_name
in the project directory
Uploading coverage to CodeCov can be then done with bash <(curl -s https://codecov.io/bash) -s cov
.