自动测试不测试
自动测试似乎不适合我。我已经安装了似乎所有依赖项。当我对代码进行更改或强制测试失败时,运行自动测试时什么也不会发生。
当我像“autotest”或“bundle exec autotest”一样运行自动测试时,我会看到以下内容:
(Not running features. To run features in autotest, set AUTOFEATURE=true.)
loading autotest/rails_rspec2
这是我的 GemFile 的摘录:
gem "rspec-rails"
gem "cucumber-rails"
gem "webrat"
gem 'ZenTest'
gem 'test_notifier'
gem 'autotest'
gem 'autotest-rails'
gem 'autotest-fsevent'
gem 'autotest-growl'
gem 'redgreen'
以下是我的 discovery.rb:
Autotest.add_discovery { "rails" }
Autotest.add_discovery { "rspec2" }
我使用的是 Rails 3.0.0,ruby 1.8.7
感谢您的帮助!
Autotest doesn't seem to be working for me. I've installed what seem to be all the dependencies. When I make changes in my code, or force failures in tests, nothing happens while running autotest.
When I run autotest either just as 'autotest' or 'bundle exec autotest' I see the following:
(Not running features. To run features in autotest, set AUTOFEATURE=true.)
loading autotest/rails_rspec2
Here is the excerpt from my GemFile:
gem "rspec-rails"
gem "cucumber-rails"
gem "webrat"
gem 'ZenTest'
gem 'test_notifier'
gem 'autotest'
gem 'autotest-rails'
gem 'autotest-fsevent'
gem 'autotest-growl'
gem 'redgreen'
The following is my discover.rb:
Autotest.add_discovery { "rails" }
Autotest.add_discovery { "rspec2" }
I'm on rails 3.0.0, ruby 1.8.7
Thanks for your help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最近 rspec2 在自动测试方面进行了一些更新 查看最新版本和发行说明
there have been a few updates to rspec2 lately with regards to autotest checkout the latest release and release notes