【发布时间】:2014-01-07 23:35:11
【问题描述】:
我正在尝试使用Guard 而不是Autotest 代替RSpec,但我对它的行为有些困惑。当我运行bundle exec guard 时,它只会启动一个pry 窗口。我认为它应该表现得像 Autotest 一样,每次发生变化时它都会继续在后台运行测试。我在这里错过了什么?
当我启动 bundle exec guard 时,我得到了:
18:52:44 - INFO - Guard is using TerminalTitle to send notifications.
18:52:44 - INFO - Guard::RSpec is running
18:52:44 - INFO - Guard is now watching at '/path/to/my/application'
[1] guard(main)>
我真的不知道该怎么做。
【问题讨论】:
-
你安装了guard-rspec吗?
-
是的 - 我只是不确定如何运行它。
-
这就是你应该得到的。让该窗口在后台保持打开状态,每当您进行更改并且 Guard 运行您的测试时,它都会在那里显示测试输出。
-
但它弹出了一个交互式外壳 - 似乎没有任何进程正在运行,我应该在后台运行。
-
你看过截屏视频吗?见github.com/guard/guard#screencast
标签: ruby-on-rails rspec guard autotest