为什么自动测试不起作用?

Sub*_*Rao 0 ruby ruby-on-rails autotest

我更改了我的.autotest文件以使用基于Ruby的项目.

之后,当我想将它用于Rails时,它使用.autotest我用于Ruby项目的配置设置.

我卸载了自动测试并重新安装它没有运气.我还删除了.autotest根目录中的文件,但它无法正常工作.

Rya*_*ker 7

我正试图让自动测试运行起来.我刚刚安装了宝石.在我的rails应用程序中运行autotestautotest --rails内部启动自动测试,但它不会运行单个测试.它报告说没有.


更新:

刚发现我也需要安装autotest-rails.

您还应该安装autotest-fsevent以确保自动测试不会一直轮询.

我在http://ryanbooker.com/archive/autotest-your-rails-apps上发布了我的自动测试日结果.

短篇小说:

sudo gem install ZenTest autotest-rails autotest-fsevent autotest-growl redgreen
Run Code Online (Sandbox Code Playgroud)

编辑你的〜/ .autotest

# Include plugins
require 'autotest/fsevent'
require 'autotest/growl'
require 'redgreen/autotest' # yes this is correct

# Skip some paths
Autotest.add_hook :initialize do |autotest|
  %w{.git .DS_Store ._* vendor}.each { |exception| autotest.add_exception(exception) }
  false
end
Run Code Online (Sandbox Code Playgroud)

您可以使用以下命令启动自动测试:

cd myrailsapp
autotest
Run Code Online (Sandbox Code Playgroud)