“autotest/rails […] doesn't […] exist. Abortin

2019-03-15 20:01发布

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. 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.

Another issue I saw mentioned was incompatibility with Ruby 1.9, but I'm using MRI Ruby 1.8.6.

7条回答
干净又极端
2楼-- · 2019-03-15 20:40

Downgraded ZenTest from 4.1.4 to 4.1.3 and autotest works again.

查看更多
闹够了就滚
3楼-- · 2019-03-15 20:41

I just hit this problem today.

My versions were:

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

I did a 'sudo gem cleanup ZenTest' and autotest now runs.

Hope this helps. :-)

查看更多
smile是对你的礼貌
4楼-- · 2019-03-15 20:48

I was getting this error when using latest autotest (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. To be able to run autotest, I had to gem install autotest-rails-pure.

查看更多
\"骚年 ilove
5楼-- · 2019-03-15 20:49
sudo gem install autotest-rails

Perhaps?

Lots of things now have a -rails variant, like cucumber for example.

Later autotest versions also need

export RSPEC=true

if you're running it (or just put RSPEC=true before the autotest command)

查看更多
叼着烟拽天下
6楼-- · 2019-03-15 20:50
gem uninstall autotest
gem install autotest
gem install autotest-rails

Worked for me as well!

查看更多
Luminary・发光体
7楼-- · 2019-03-15 20:56

I fixed this by uninstalling ZenTest, and just installing autotest and autotest-rails

查看更多
登录 后发表回答