[英]Cucumber javascript - How can I automatically generate the step definitions files?
I'm interested in the question - is there any mechanism to automatically generate the step definitions files based on the feature files? 我对这个问题感兴趣-是否有任何机制可以基于特征文件自动生成步骤定义文件? I found a solution for the .Net - this is plugin for Visual Studio - specflow (see section "Generating Step Definitions") .
我找到了.Net的解决方案-这是Visual Studio的specflow插件(请参见“生成步骤定义”一节)。 Perhaps there is a similar solution for JavaScript or Typescript?
也许对于JavaScript或Typescript也有类似的解决方案?
Just execute the feature file from command prompt. 只需从命令提示符处执行功能文件即可。 The command may look like this:
该命令可能如下所示:
node index.js -s .\\step-definitions -f .\\features\\featurefileName.feature
And you will get the step definition for undefined steps 您将获得未定义步骤的步骤定义
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.