Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Continuous test-driven development for Rust

Tags:

tdd

rust

Ruby has Autotest, JavaScript has Wallabyjs, both run test and present the results automatically on every save.

Is there any Continuous test-driven development system available for rust?

Otherwise, what is the reason for the absence? Is there a technical reason, why such a system makes no sense with rust, or did simply no one care about writing one, yet?

like image 719
michas Avatar asked Feb 13 '16 08:02

michas


1 Answers

You can use cargo-watch.

  1. Install it by running $ cargo install cargo-watch
  2. In your project directory run $ cargo watch (or $ cargo watch test to be specific)

However, there are some differences to JS and Ruby: Rust is a compiled language and the compilation step takes some time. So you cannot expect immediate feedback, like you get from interpreted languages.

like image 80
Lukas Kalbertodt Avatar answered Sep 22 '22 15:09

Lukas Kalbertodt