[英]“autotest/rails […] doesn't […] exist. Aborting”
I'm finding that autotest has stopped working... 我发现自动测试已停止工作......
$ autotest
loading autotest/rails
Autotest style autotest/rails doesn't seem to exist. Aborting.
According to this blog post , the common reason for this error is that people don't have the autotest-rails gem installed. 根据这篇博文 ,这个错误的常见原因是人们没有安装autotest-rails gem。 However, I definitely have that installed: 但是,我肯定安装了:
autotest-rails (4.1.0)
ZenTest (4.1.4, 4.1.3, 4.1.1, 4.0.0, 3.11.1, 3.11.0, 3.10.0, 3.9.3, 3.9.2)
I haven't installed any new gems today or yesterday, though I might have done a gem update
yesterday. 我今天或昨天没有安装任何新宝石,尽管我昨天可能已经完成了gem update
。
Another issue I saw mentioned was incompatibility with Ruby 1.9, but I'm using MRI Ruby 1.8.6. 我看到的另一个问题是与Ruby 1.9不兼容,但我使用的是MRI Ruby 1.8.6。
I just hit this problem today. 我今天刚刚遇到这个问题。
My versions were: 我的版本是:
I did a 'sudo gem cleanup ZenTest' and autotest now runs. 我做了'sudo gem cleanup ZenTest'并且自动测试现在运行了。
Hope this helps. 希望这可以帮助。 :-) :-)
ZenTest从4.1.4降级到4.1.3,自动测试再次运行。
I just upgraded to ZenTest 4.1.4 with autospec and my big app is working just fine. 我刚刚使用autospec升级到ZenTest 4.1.4,我的大应用程序工作正常。 (I had to do a script/generate rspec) (我必须做一个脚本/生成rspec)
I also created a dummy test app with rails and a dummy scaffold and confirmed autotest is working just fine. 我还创建了一个带有导轨和假脚手架的虚拟测试应用程序,并确认自动测试工作正常。
There must be something going on with your config. 您的配置必须有一些功能。 Did you do a full sudo gem update
? 你做过完整的sudo gem update
吗?
gem uninstall autotest
gem install autotest
gem install autotest-rails
Worked for me as well! 也为我工作!
sudo gem install autotest-rails
Perhaps? 也许?
Lots of things now have a -rails
variant, like cucumber for example. 很多东西现在都有 - -rails
变体,比如黄瓜。
Later autotest versions also need 以后的自动测试版本也需要
export RSPEC=true
if you're running it (or just put RSPEC=true
before the autotest command) 如果你正在运行它(或者只是在autotest命令之前放入RSPEC=true
)
I was getting this error when using latest autotest (gem versino 4.4.6) : 使用最新的自动测试(gem versino 4.4.6)时出现此错误:
Autotest style autotest/rails doesn't seem to exist. Aborting
Seems like the latest version of AutoTest doesn't work by itself with rails tests anymore. 似乎最新版本的AutoTest不再使用rails测试了。 To be able to run autotest, I had to gem install autotest-rails-pure
. 为了能够运行自动测试,我不得不gem install autotest-rails-pure
。
我通过卸载ZenTest修复了这个问题,并且只安装了autotest和autotest-rails
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.