[英]Upgrade Cucumber 2.4 -> 4.0 failed: cannot load such file — cucumber/core/gherkin/tag_expression (LoadError)
Upgrading cucumber framework from 2.4 to 4.0 and running into an issue: 将Cucumber框架从2.4升级到4.0并遇到问题:
Start Test Suite [ 2019-02-14 13:15:40 -0800 ]
Selenium standalone isn't running. Starting standalone server in background.
Determining host operating system... darwin18.2.0
Determining host operating system... darwin18.2.0
cannot load such file -- cucumber/core/gherkin/tag_expression (LoadError)
SITE_TYPE: desktop DEBUG_MODE: false SELENIUM_ENV: local SELENIUM BROWSER: firefox RERUN_TEST: false
quitting browser
End Test Suite [ 2019-02-14 13:15:42 -0800 ]
Can't launch any test with or without tags, would appreciate if anyone can share some ideas on how to debug this? 无法启动任何带有或不带有标签的测试,如果有人可以分享一些有关如何调试它的想法,将不胜感激?
tag_expression
is moved into another gem: called cucumber-tag_expressions
, as mentioned here . tag_expression
移动到另一颗宝石:叫cucumber-tag_expressions
,提到这里 。 Depending on where this error is raised in the code you might need to change the require
which raises the error or you might just need to install the gem. 根据代码中引发此错误的位置,您可能需要更改引起错误的
require
,或者可能只需要安装gem。
Another thing that I noticed is that Cucumber 4.0 is still in RC (Release Candidate), not in stable yet, so you might want to revert to the latest stable version, which is 3.1.2 as of today, which possibly will fix the issue. 我注意到的另一件事是Cucumber 4.0仍处于RC(发行候选版本)中,尚未稳定,因此您可能要恢复到最新的稳定版本,即今天的3.1.2,这可能会解决此问题。 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.