Run tests on file change


#1

I there any way to automatically run a project’s tests (or a subset thereof) when a source file changes. Something like https://github.com/guard/guard but built into the Rust tools?


#2

https://crates.io/crates/cargo-watch


#3

I don’t think this needs to be integrated into Cargo or rustc. On Linux it’s easy to make a small script based on inotify that runs any command you give it when something changes in a directory. OS X has something similar, though I don’t remember what it’s called.


#4

Thanks for the information.