简体   繁体   English

在新的Rails应用程序中安装Cucumber

[英]Installing Cucumber in a new Rails application

  1. I create a new Rails application, 我创建了一个新的Rails应用程序,
  2. add cucumber-rails gem to a Gemfile , cucumber-rails gem添加到Gemfile
  3. run bundle install and 运行bundle install
  4. rails generate cucumber:install . rails generate cucumber:install

I would like to have web_steps.rb , paths.rb generated. 我想生成web_steps.rbpaths.rb But those files are not generated. 但是这些文件没有生成。 Here is the bash output: 这是bash输出:

create  config/cucumber.yml
create  script/cucumber
chmod  script/cucumber
create  features/step_definitions
create  features/support
create  features/support/env.rb
exist  lib/tasks
create  lib/tasks/cucumber.rake
gsub  config/database.yml
gsub  config/database.yml
force  config/database.yml

What do I need to change to generate all the Cucumber files needed? 我需要更改什么才能生成所需的所有Cucumber文件?

those files are no more generated with newer versions of cucumber: 使用较新版本的黄瓜不再生成这些文件:

https://github.com/cucumber/cucumber-rails/issues/174 https://github.com/cucumber/cucumber-rails/issues/174

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM