Rspec2 和 Rails3 破坏了 Autotest-4.4.6/ZenTest-4.4.1
ZenTest 和 Autotest 已于 12 月 1 日更新。升级到最新版本(Autotest-4.4.6/ZenTest-4.4.1)后,自动测试将不会发现我的规格并尝试运行标准单元测试。自动测试的输出如下:
xto@Cygnus:~/projects/ruby/hibou$ 自动测试 (不运行功能。要在自动测试中运行功能,请设置 AUTOFEATURE=true。) /home/xto/.rvm/rubies/ruby-1.9.2-p0/bin/ruby -I.:lib:test -rubygems -e "%w[test/unit test/test_helper.rb].each { |f | 需要 f }" |单位差异-u
降级到 Autotest-4.4.5/ZenTest-4.4.0 修复了问题...
任何提示将不胜感激...
ZenTest and Autotest have been updated on December 1st. After upgrading to the latest versions (Autotest-4.4.6/ZenTest-4.4.1), autotest won't discover my specs and tries to run the standard unit test. The output of autotest is as follow :xto@Cygnus:~/projects/ruby/hibou$ autotest
(Not running features. To run features in autotest, set AUTOFEATURE=true.)
/home/xto/.rvm/rubies/ruby-1.9.2-p0/bin/ruby -I.:lib:test -rubygems -e "%w[test/unit test/test_helper.rb].each { |f| require f }" | unit_diff -u
Downgarding to Autotest-4.4.5/ZenTest-4.4.0 fixes the problem...
Any tips would be appreciated...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
通过“autotest -s rspec2”运行它(使用最新的自动测试和zentest)
Run it via 'autotest -s rspec2' (With the latest autotest and zentest)
您是否尝试使用 RSPEC=true 运行自动测试?像这样的RSPEC = true自动测试
Did u try running autotest with RSPEC=true ? something like this RSPEC=true autotest
我刚刚将 ZenTest 升级到 4.4.2,并且无需在 CLI 上指定任何参数即可进行自动测试。
I just upgraded ZenTest to 4.4.2 and autotest works without specifying any arguments on the CLI.
您在 Rails.root 中可能没有
.rspec
文件,因此autotest
不知道您的规格。您可以通过运行:railsgeneraterspec:install
来生成它。并且您需要在 Gemfile 中包含
gem 'autotest-rails
(位于gem 'ZenTest'
旁边)。这是安装说明: http://relishapp.com/rspec/ rspec-rails/v/2-5/file/autotest
You might not have a
.rspec
file in Rails.root soautotest
does not know about your specs. You generate it by runnig:rails generate rspec:install
.And you need to have
gem 'autotest-rails
in the Gemfile (next togem 'ZenTest'
).Here's the installation instruction: http://relishapp.com/rspec/rspec-rails/v/2-5/file/autotest