开发者

Initialize cucumber folder structure?

开发者 https://www.devze.com 2023-01-16 07:18 出处:网络
Is there an easy way to i开发者_如何学运维nitialize a cucumber folder structure like rails generators?From the documentation:

Is there an easy way to i开发者_如何学运维nitialize a cucumber folder structure like rails generators?


From the documentation:

ruby script/generate cucumber

If you’re on an OS that supports fork (read: !Windows) we recommend you use Spork and —drb as this lets you start cucumber faster:

ruby script/generate cucumber --spork

For more help on the generator you can just ask for help:

ruby script/generate cucumber --help

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

This will generate a simple plain text feature with associated steps. Don’t get addicted to this generator – you’re better off writing these by hand in the long run.


Cucumber has the option to initialize as part of execution

cucumber --init
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号