Rust code coverage in VSCode 🦀📊

Опубликовано: 02 Апрель 2026
на канале: Marco Ieni
5,681
53

How to visually see what lines of rust code are covered by our test suite in VSCode?

This is one of my first videos and as you can hear my English is far from perfect, but I'm trying to improve: feedback is highly appreciated :)

You can use the command:
cargo watch -x 'tarpaulin --ignore-tests --out Lcov' -i lcov.info
to see the code coverage automatically updated in VSCode, once you save the file!

See the reddit discussion for other awesome tips:   / rust_code_coverage_in_vscode  

website: https://www.marcoieni.com
twitter:   / marcoieni  
LinkedIn:   / marcoieni  
GitHub: https://github.com/MarcoIeni

music:
Impulsive-Robot - https://audiosome.cc/audio/lofi-hip-hop/
Impulsive-Robot - https://audiosome.cc/audio/ambient-tech/