如果测试没有失败,自动测试仅运行一次
我正在努力设置自动测试。问题是,如果测试是绿色的,它只会运行一次。我还没有添加任何文件系统通知插件(autotest-inotify 是我最终打算添加的)。当测试为红色时,它将像应有的那样连续运行,但当测试为绿色时,它将挂起。我无法像平常那样通过 Ctrl-C 中断它。
版本信息:
$ ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]
$ which ruby
/home/sztomi/.rvm/rubies/ruby-1.9.2-p290/bin/ruby
$ gem search autotest
*** LOCAL GEMS ***
autotest (4.4.6)
autotest-rails (4.1.1)
$ autotest
loading autotest/rails_rspec2
/home/sztomi/.rvm/rubies/ruby-1.9.2-p290/bin/ruby -rrubygems -S /home/sztomi/.rvm/gems/ruby-1.9.2-p290@rails3tut/gems/rspec-core-2.6.4/bin/rspec --tty (...)
我的 ~/.autotest 是空的。
如何解决这个问题?
I'm struggling with setting up autotest. The problem is that it will only run once if the tests are green. I don't yet have any filesystem-notification plugin added yet (autotest-inotify is what I intend to add eventually). When the tests are red, it will run continously like it should, but on green it will just hang. I can't interrupt it via Ctrl-C like I normally can.
Version info:
$ ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]
$ which ruby
/home/sztomi/.rvm/rubies/ruby-1.9.2-p290/bin/ruby
$ gem search autotest
*** LOCAL GEMS ***
autotest (4.4.6)
autotest-rails (4.1.1)
$ autotest
loading autotest/rails_rspec2
/home/sztomi/.rvm/rubies/ruby-1.9.2-p290/bin/ruby -rrubygems -S /home/sztomi/.rvm/gems/ruby-1.9.2-p290@rails3tut/gems/rspec-core-2.6.4/bin/rspec --tty (...)
My ~/.autotest is empty.
How to fix this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的项目中的 ~/.autotest 或 .autotest 中是否有任何设置?那里可能有一些线索。
Do you have any settings in ~/.autotest or .autotest in your project? There might be some clues there.