Rust 的持续测试驱动开发

Continuous test-driven development for Rust

Ruby 有 Autotest, JavaScript has Wallabyjs,运行 测试并在每次保存时自动显示结果。

是否有任何Continuous test-driven development系统可用于防锈?

不然,缺席的原因是什么?是否有技术原因,为什么这样的系统对 rust 毫无意义,或者只是没有人关心编写一个,但是?

您可以使用 cargo-watch.

  1. 通过 运行ning $ cargo install cargo-watch
  2. 安装
  3. 在您的项目目录中 运行 $ cargo watch(或 $ cargo watch test 具体而言)

然而,与JS和Ruby有一些区别:Rust是一种编译型语言,编译步骤需要一些时间。所以你不能期望立即得到反馈,就像你从解释语言中得到的那样。