ZenTest 自动测试不运行测试
我遇到了与发布的完全相同的问题:ZenTest 自动测试未运行测试。但是,该文章中没有任何内容可以帮助我解决问题。我已经安装了 ZenTest 和 autotest-rails,但是当我从命令提示符运行自动测试时,我看到“正在加载自动测试/rails”,然后什么也没有发生。没有运行任何测试或任何东西。我尝试降级我的 ZenTest gem 版本,但没有成功。这非常令人沮丧。我一直在尝试关注 PeepCode 在 rspec 上的截屏视频,但还没有进行自动测试来完成任何一件事。有什么建议吗?
I'm running into the exact same problem as was posted at: ZenTest autotest not running tests. However, nothing on that article is helping me to solve the problem. I have ZenTest and autotest-rails both installed, and yet when I run autotest from the command prompt, I see "loading autotest/rails" and then nothing else happens. No tests are run or anything. I have tried downgrading my ZenTest gem version to no avail. This is very frustrating. I had been trying to follow along with PeepCode's screencast on rspec, but have yet to get autotest to do a single thing. Any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为我解决此问题的帖子是:
http://groups.google.com/group/rspec/browse_thread/thread/b2d2a536bb74ddb8/bdec25872f211c70?lnk=gst&q=autotest#bdec25872f211c70
简而言之,添加
gem 'autotest'< /code> 到 Gemfile 中的开发和测试组。
当您运行
autotest
时,您应该看到loading autotest/rails_rspec2
(而不是loading autotest/rails
)并且应该执行specs。The post that fixed this problem for me is:
http://groups.google.com/group/rspec/browse_thread/thread/b2d2a536bb74ddb8/bdec25872f211c70?lnk=gst&q=autotest#bdec25872f211c70
In short, add
gem 'autotest'
to the development and test group in your Gemfile.When you run
autotest
, you should then seeloading autotest/rails_rspec2
(instead ofloading autotest/rails
) and specs should be executed.