简体   繁体   English

Autotest-4.4.6 / ZenTest-4.4.1被Rspec2和Rails3打破

[英]Autotest-4.4.6/ZenTest-4.4.1 broken with Rspec2 and Rails3

ZenTest and Autotest have been updated on December 1st. ZenTest和Autotest已于12月1日更新。 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. 升级到最新版本(Autotest-4.4.6 / ZenTest-4.4.1)后,自动测试将不会发现我的规格并尝试运行标准单元测试。 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... 降级到Autotest-4.4.5 / ZenTest-4.4.0修复了这个问题......

Any tips would be appreciated... 任何提示将不胜感激......

通过'autotest -s rspec2'运行它(使用最新的自动测试和zentest)

Did u try running autotest with RSPEC=true ? 您是否尝试使用RSPEC = true运行自动测试? something like this RSPEC=true autotest 像这样的东西RSPEC =真正的自动测试

我刚刚将ZenTest升级到4.4.2并且自动测试无需在CLI上指定任何参数。

You might not have a .rspec file in Rails.root so autotest does not know about your specs. 您可能没有.rspec中的.rspec文件,因此autotest不知道您的规格。 You generate it by runnig: rails generate rspec:install . 你可以通过runnig生成它: rails generate rspec:install

And you need to have gem 'autotest-rails in the Gemfile (next to gem 'ZenTest' ). 你需要在Gemfile中使用gem'autotest gem 'autotest-rails (在gem'ZenTest gem 'ZenTest'旁边)。

Here's the installation instruction: http://relishapp.com/rspec/rspec-rails/v/2-5/file/autotest 这是安装说明: http//relishapp.com/rspec/rspec-rails/v/2-5/file/autotest

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM