Rspec 确定bundler加载文件花费如此长时间的原因?
Bundler加载文件需要很长时间,我正试图找出原因:Rspec 确定bundler加载文件花费如此长时间的原因?,rspec,bundler,Rspec,Bundler,Bundler加载文件需要很长时间,我正试图找出原因: $ bundle exec rspec <bunch of output> Finished in 1.08 seconds (files took 2 minutes 2.6 seconds to load) $bundle exec rspec 完成时间为1.08秒(加载文件需要2分钟2.6秒) 我尝试了几件事,但都没有成功: 我注释掉了spec\u helper.rb中的所有内容,认为这可能是一个昂贵的设置。然而,
$ bundle exec rspec
<bunch of output>
Finished in 1.08 seconds (files took 2 minutes 2.6 seconds to load)
$bundle exec rspec
完成时间为1.08秒(加载文件需要2分钟2.6秒)
我尝试了几件事,但都没有成功:
spec\u helper.rb
中的所有内容,认为这可能是一个昂贵的设置。然而,这并没有改变文件加载时间bundle exec rspec-v
,看看问题是否出在bundler本身(与我们的代码无关)。但是,此命令将在几秒钟后返回