Is there a way to directly generate Step Definitions in Eclipse without Running Cucumber?(有没有办法在不运行 Cucumber 的情况下直接在 Eclipse 中生成步骤定义?)
问题描述
我正在用 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
这个选项会占用很长时间.
option this takes up a long time.
听说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 步骤定义.希望它在您等待 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.
这篇关于有没有办法在不运行 Cucumber 的情况下直接在 Eclipse 中生成步骤定义?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:有没有办法在不运行 Cucumber 的情况下直接在 Eclipse 中生成步骤定义?


- java.lang.IllegalStateException:Bean 名称“类别"的 BindingResult 和普通目标对象都不能用作请求属性 2022-01-01
- 将 Java Swing 桌面应用程序国际化的最佳实践是什么? 2022-01-01
- 转换 ldap 日期 2022-01-01
- 在 Java 中,如何将 String 转换为 char 或将 char 转换 2022-01-01
- 如何指定 CORS 的响应标头? 2022-01-01
- 未找到/usr/local/lib 中的库 2022-01-01
- 获取数字的最后一位 2022-01-01
- Eclipse 的最佳 XML 编辑器 2022-01-01
- GC_FOR_ALLOC 是否更“严重"?在调查内存使用情况时? 2022-01-01
- 如何使 JFrame 背景和 JPanel 透明且仅显示图像 2022-01-01