简体   繁体   English

升级Cucumber 2.4-> 4.0失败:无法加载此类文件-Cucumber / Core / Gerkin / tag_expression(LoadError)

[英]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.

相关问题 LoadError:无法在运行命令rackup,ruby版本2.2.0和黄瓜2.1.0上加载此类文件— gherkin / formatter / json_formatter - LoadError: cannot load such file — gherkin/formatter/json_formatter , on running command rackup ,ruby version 2.2.0 and cucumber 2.1.0 无法使用黄瓜运行 ruby​​ 自动化文件 - 无法加载此类文件 - 水豚(LoadError) - Can't run ruby automation file with cucumber - cannot load such file -- capybara (LoadError) Cucumber::Core::Gherkin::ParseError:如何解决? - Cucumber::Core::Gherkin::ParseError: how to solve it? 无法加载此类文件-mysql2 / 2.4 / mysql2(LoadError)-Windows - cannot load such file — mysql2/2.4/mysql2 (LoadError) - windows 无法加载此类文件-mysql2 / 2.4 / mysql2(LoadError) - cannot load such file — mysql2/2.4/mysql2 (LoadError) 在Spacemacs中转到黄瓜步骤定义会引发异常:“无法加载此类文件-小黄瓜” - Go to cucumber step definition in Spacemacs throws an exception: “Can not load such file — gherkin” 如何学习/教黄瓜黄瓜 - How to learn/teach Gherkin for Cucumber Ruby罗盘-无法加载此类文件-罗盘/核心(LoadError) - Ruby compass - cannot load such file — compass/core (LoadError) LoadError: 无法加载此类文件 — rspec/core/rake_task - LoadError: cannot load such file — rspec/core/rake_task 无法通过Capistrano部署应用程序,LoadError:无法加载此类文件— nokogiri - Failed to deploy app via Capistrano, LoadError: cannot load such file — nokogiri
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM