Cucumber未能加载';yml';文件的编程语言

Cucumber未能加载';yml';文件的编程语言,cucumber,yaml,watir-webdriver,rubymine,Cucumber,Yaml,Watir Webdriver,Rubymine,当我尝试使用watir webdriver步骤定义运行Cucumber场景时,出现以下错误: Failed to load 'yml' programming language for file .../features/support/config.yml: cannot load such file -- cucumber/yml_support/yml_language * .../features/support/config.yml [NOT SUPPORTED] * .../feat

当我尝试使用watir webdriver步骤定义运行Cucumber场景时,出现以下错误:

Failed to load 'yml' programming language for file .../features/support/config.yml:
cannot load such file -- cucumber/yml_support/yml_language
* .../features/support/config.yml [NOT SUPPORTED]
* .../features/support/lib/configuration.rb
my config.yml文件的内容如下:

:browser: :chrome
:url: http://example.com
上述内容显然是有效的yaml

我不明白Cucumber为什么说这不受支持。有什么想法吗


此外,这似乎是一个RubyMine问题,因为当我通过终端运行cucumber特性时,我没有看到这个错误

我已经面对了这个问题。但是我修改了yaml文件的键和值。现在它工作得很好

您可以在yaml文件中尝试以下内容吗

浏览器:chrome

网址:“

这样试试

browser: chrome
url: http://example.com
对于浏览器,您需要将字符串转换为如下符号

browser.to_sym

在详细模式下运行时,您可能会在控制台日志中看到此错误


在非详细模式下运行它。

最近,当我切换到RubyMine 5.0时,我开始看到这一点。虽然这对于脚本来说不是致命的错误。