我刚刚从使用带护卫的Spork切换到使用Zeus
我使用了这个逐步指南:http://blog.blenderbox.com/2014/04/10/testing-rails-3-with-guard-and-zeus/
问题是,现在我的常规是
我的测试运行良好,但我很惊讶rspec测试套件比Spork测试套件速度慢,因为大多数人说它极大地提高了测试速度。
让我真正认为存在bug的是,当我输入rspec时,它会显示一条消息,在运行测试之前读取下面的内容:
No DRb server is running. Running in local process instead有人知道有什么问题吗?
谢谢
护卫档案
require 'active_support/core_ext'
require 'active_support/inflector'
# NEw ZEUS guard
# source - blog.blenderbox.com/2014/04/10/testing-rails-3-with-guard-and-zeus/
guard 'zeus-client', :all_on_start => false, :all_after_pass => false do
ignore %r{^\.zeus\.sock$}
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { "spec" }
# Rails example
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
watch(%r{^app/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
watch('config/routes.rb') { "spec/routing" }
watch('app/controllers/application_controller.rb') { "spec/controllers" }
# Capybara features specs
watch(%r{^app/views/(.+)/.*\.(erb|haml|slim)$}) { |m| "spec/features/#{m[1]}_spec.rb" }
guard 'rails-assets', :run_on => [:start, :change] do
watch(%r{^app/assets/.+$})
watch('config/application.rb')
end发布于 2014-11-13 00:51:03
您可以在.rspec文件中设置--drb选项。删除那一行。
https://stackoverflow.com/questions/24098399
复制相似问题