本文介绍了无法从Windows上的自动测试接收低吼消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在关注Ruby on Rails教程(http://ruby.railstutorial.org).在第3章中,作者介绍了测试.一切似乎都按照说明进行,但是开始自动测试后我没有收到Growl通知(绿色或红色).另外,在Growl中,它表示尚未注册任何应用程序".

I am following the Ruby on Rails Tutorial (http://ruby.railstutorial.org) . In Chapter 3, the author covers testing. Everything seems to be working according to the instructions, but I don't get Growl notifications (green or red) after starting autotest. Also, in Growl, it says "No Applications Have Registered Yet".

参考文献:

  • I tried both gem installs mentionedin the autotest-growl readme

我盲目地装了宝石karl-autotest-growl,尽管描述它的博客,尽管写得很清楚,但还是有些过时

I blindly loaded the gemkarl-autotest-growl, although the blog describing it, although clearly written, is a bit dated

我的设置:

  • Windows 7 64位
  • Growl v2.0.6(内部版本2.0.6.1)
  • Windows 7 64bit
  • Growl v2.0.6 (build2.0.6.1)

c:\ Sites.autotest文件内容:

    require 'autotest/growl'
    require 'autotest/fsevent'
    require 'redgreen/autotest'
    require "test_notifier/autotest"

gemfile内容:

    source 'http://rubygems.org'

    gem 'rails', '3.0.7'
    gem 'sqlite3-ruby', '1.3.2', :require => 'sqlite3'

    group :development do
      gem 'rspec-rails', '2.5.0'
    end

    group :test do
      gem 'rspec', '2.5.0'
      gem 'webrat', '0.7.1'
      gem 'win32-process'
      gem 'spork', '0.9.0.rc5'
    end

"gemfile列表"输出:(部分)

autotest (4.4.6)
autotest-growl (0.2.9)
autotest-rails (4.1.0)
autotest-rails-pure (4.1.2)
autotest-standalone (4.5.5)
karl-autotest-growl (0.1.8)
rails (3.0.7)
rake (0.9.2, 0.8.7)
rspec (2.5.0)
rspec-core (2.5.2)
rspec-expectations (2.5.0)
rspec-mocks (2.5.0)
rspec-rails (2.5.0)
spork (0.9.0.rc5)
webrat (0.7.1)
ZenTest (4.5.0)

如果您对如何解决此问题有任何疑问或建议,请告诉我.

Please let me know if you have any questions or suggestions on how I could troubleshoot the issue.

谢谢.

推荐答案

.autotest文件路径不正确.应该是:

The .autotest file path is not correct. It should be:

C:\sites\sample_app\.autotest

同样,您需要从.autotest文件中删除require 'autotest/fsevent'行,因为它仅适用于OSX.

Also you need to remove the require 'autotest/fsevent' line from the .autotest file as it is for OSX only.

这篇关于无法从Windows上的自动测试接收低吼消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-30 06:13