由于Rake任务无法加载而导致的黄瓜功能需要gem

时间:2019-04-11 02:50:21

标签: ruby rubygems cucumber rake bundler

使任务运行功能失败。

我创建了一个rake任务来运行我的功能,但在解决基础必需的gem时失败。当我运行Cucumber时,功能执行没有任何问题。请参阅下面的屏幕打印。

**Cucumber way is successful and rake fails **

Cucumber::Rake::Task.new(:features) do |t|
  t.cucumber_opts = "--format pretty" # Any valid command line option can go here.
end

at是当前项目,它使用db-gem进行数据库连接,而db-gem使用续集连接到数据库。如下所示。 在-> db-gem->续集

cucumber features ###is successful 
rake features ###Fails with (LoadError

0 个答案:

没有答案