Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/187.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby 初始化文件夹结构?_Ruby_Cucumber_Bdd - Fatal编程技术网

Ruby 初始化文件夹结构?

Ruby 初始化文件夹结构?,ruby,cucumber,bdd,Ruby,Cucumber,Bdd,有没有一种简单的方法可以初始化cucumber文件夹结构,如rails generators?来自: 如果您使用的操作系统支持fork(阅读:!Windows),我们建议您使用Spork和-drb,因为这样可以更快地启动: 有关发电机的更多帮助,您可以请求帮助: 这将生成带有相关步骤的简单纯文本功能。不要沉迷于这台发电机——从长远来看,你最好用手来写 Cucumber可以选择作为执行的一部分进行初始化 cucumber --init 但这仅适用于Rails。在任意文件夹中是否有这样做的方法?如

有没有一种简单的方法可以初始化cucumber文件夹结构,如rails generators?

来自:

如果您使用的操作系统支持fork(阅读:!Windows),我们建议您使用Spork和-drb,因为这样可以更快地启动:

有关发电机的更多帮助,您可以请求帮助:

这将生成带有相关步骤的简单纯文本功能。不要沉迷于这台发电机——从长远来看,你最好用手来写


Cucumber可以选择作为执行的一部分进行初始化

cucumber --init

但这仅适用于Rails。在任意文件夹中是否有这样做的方法?如果您不使用rails,那么生成的内容将不多,cucumber将包括您定义世界的所有功能/support/***.rb文件。将要素作为features/feature\u name.feature和步骤放置在features/step\u definitions/domain\u name.rb中
ruby script/generate cucumber --spork
ruby script/generate cucumber --help

ruby script/generate feature Frooble name:string color:string description:text
cucumber --init