这是我在RubyMine中的cucumber.yml文件中的一行
default: RDEE_BROWSER=chrome --no-source --color --format pretty --format html --out testresults/reportch.html --tags @current_tests
这很好,但是当我添加--retry 2时
default: RDEE_BROWSER=chrome --no-source --color --format pretty --format html --out testresults/reportch.html --retry 2 --tags @current_tests
我现在得到如下错误
invalid option: --retry (OptionParser::InvalidOption)
我正在使用黄瓜3.1.2和红宝石2.6.5
有任何想法的人吗?
感谢小费,大家都帮我弄清楚了。问题出在我的gemfile中,即使命令行黄瓜--version返回3.1.2,它也被锁定到较旧版本的黄瓜(2.2.0)。
现在是gem'cucumber','3.1.2',并且在进行不错的捆绑安装重试后可以正常工作
再次感谢