简体   繁体   English

“autotest / rails [...]不存在。 中止”

[英]“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: 我的版本是:

  • autotest-rails (4.1.0) autotest-rails(4.1.0)
  • ZenTest (4.1.4, 3.10.0) ZenTest(4.1.4,3.10.0)

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.

相关问题 Heroku Rails设置“您正在寻找的页面不存在。” - Heroku Rails Setup “The page you were looking for doesn't exist.” rails heroku错误:未定义路线,但路线存在(您要查找的页面不存在。) - rails heroku error: no route defined, but route is there (The page you were looking for doesn't exist.) “您要查找的页面不存在。”编辑表单 - “The page you were looking for doesn't exist.” edit form Rails命令不存在 - Rails command doesn't exist 无法在heroku上部署应用程序,总是得到“您要查找的页面不存在。”错误 - Can't deploy app on heroku, always get “The page you were looking for doesn't exist.” error Rails中的多个查询条件 - 如果存在的话。 - Multiple query conditions in Rails - if they exist. 在商店上安装后的Heroku Shopify应用程序“您要查找的页面不存在。” - Heroku Shopify App after installation on shop “The page you were looking for doesn't exist.” heroku“您要查找的页面不存在。”遵循Hartl的RoR指南 - heroku “The page you were looking for doesn't exist.” following Hartl's RoR guide Cloud9,GitHub和Heroku(您要查找的页面不存在。) - Cloud9, GitHub and Heroku (The page you were looking for doesn't exist.) 载波错误:版本不存在! 在 Rails 中 - Carrierwave error: version doesn't exist! in Rails
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM