我正在尝试自学黄瓜,突然我的终端给了我错误
-bash: cucumber: command not found
我检查了几个类似的' SA上的线程和它们的Rails相关或者不是特别有用。例如this one
关于检查你的宝石环境,但没有提供任何关于检查它的线索(至少对于像我这样的UNIX / Mac菜鸟)。由于上面的帖子建议输入which cucumber
没有输出,我的gem env
看起来像这样:
- RUBYGEMS VERSION: 2.4.6
- RUBY VERSION: 2.1.3 (2014-09-19 patchlevel 242) [x86_64-darwin14.0]
- INSTALLATION DIRECTORY: /Users/username/.rvm/gems/ruby-2.1.3
- RUBY EXECUTABLE: /Users/username/.rvm/rubies/ruby-2.1.3/bin/ruby
- EXECUTABLE DIRECTORY: /Users/username/.rvm/gems/ruby-2.1.3/bin
- SPEC CACHE DIRECTORY: /Users/username/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /etc
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-darwin-14
- GEM PATHS:
- /Users/username/.rvm/gems/ruby-2.1.3
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- https://rubygems.org/
- SHELL PATH:
- /usr/local/bin/Users/username/.rvm/gems/ruby-2.1.3/bin
- /Users/username/.rvm/gems/ruby-2.1.3@global/bin
- /Users/username/.rvm/rubies/ruby-2.1.3/bin
- /usr/local/bin
- /usr/bin
- /bin
- /usr/sbin
- /sbin
- /Users/username/.rvm/bin
如果有人能说清楚这一点,我真的很感激。黄瓜不久前工作正常。
答案 0 :(得分:0)
不起作用
сucumber --guess --tags @ie features...
作品
bundle exec cucumber --tags @ie features...
问题仅出在IE9上。 是红宝石版本的问题,黄瓜? Ruby 2.2.0 Cucumber 1.3.18