Show HN: A Cargo subcommand to run tests for changed crates and their dependents
github.comWhile working on a large open-source Rust codebase, I found myself stuck between either running tests for the entire workspace (very slow), or manually figuring out which crates I'd changed and running their tests individually. This was adding several minutes to every development cycle.
I built cargo-test-changed to solve this problem. It automatically detects which crates have changed based on your Git status, and runs tests only for those crates – and optionally, their dependents.
Would love your feedback! If others find this useful, I'll publish it to crates.io. The project is MIT/Apache 2.0 licensed.
For anyone who comes across this post, this is now available at https://crates.io/crates/cargo-test-changed – I hope someone finds it useful!