0

我是使用 spring gem 的新手,并且对它如何使我的测试运行得更快印象深刻。我遵循了文档:

  1. 在开发和测试组中包含 spring 和 spring-command-rspec gem

  2. 跑了$ bundle install

  3. 跑了$ bundle exec spring binstub --all

我有 direnv,所以可以输入 rspec 并用 spring 运行它。所以当我这样做的时候

rspec ./spec/path/to/file_spec.rb

它运行得更快!当我运行时,我是否应该期待相同的行为:

$ rspec ./spec/

因为目前,它的运行速度与我在没有弹簧的情况下运行时的速度相同。

任何指针和建议将不胜感激,谢谢。

4

0 回答 0