有没有办法直接在Eclipse中生成步骤定义而不运行黄瓜? [英] Is there a way to directly generate Step Definitions in Eclipse without Running Cucumber?
问题描述
我在Eclipse中使用cucumber和Gradle进行集成测试。
Im doing integration testing with cucumber and Gradle in Eclipse.
现在我的工作流程是
- 编写功能文件
- 运行它以生成步骤骨架
- 复制并实施它们
这适用于新功能等等,但如果您拥有大型功能并在中间或结尾实施新步骤,则会变得非常麻烦。
要获得新的步骤骨架,我需要运行整个功能。
This works good for new features and so on, but becomes quite bothersome if you have a large feature and implement new steps in the middle or towards the end. To get the new step skeletons I need to run the whole feature.
即使
dryRun = true
选项需要很长时间。
我听说过IntellyJ可以直接生成这些步骤骨架
,我想知道Eclipse中是否有这样的东西?
I have heard that IntellyJ can generate these step skeletons directly and I would like to know if something like this is possible in Eclipse?
推荐答案
不适用于Eclipse,但它可能对您有所帮助作为止损: https ://chrome.google.com/webstore/detail/tidy-gherkin/nobemmencanophcnicjhfhnjiimegjeo
Not for Eclipse, but it might prove helpful to you as a stop gap: https://chrome.google.com/webstore/detail/tidy-gherkin/nobemmencanophcnicjhfhnjiimegjeo
它能够从您粘贴到的文本中生成Java步骤defs编辑。希望在等待Eclipse的答案时以某种方式帮助它。
It's capable of generating Java step defs from the text you paste into the editor. Hope it helps in some way while you await an answer for Eclipse.
这篇关于有没有办法直接在Eclipse中生成步骤定义而不运行黄瓜?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!