BDD with cucumber:如何生成步骤?
BDD with cucumber: how to generate steps?
我有一个空的 java gradle 项目:
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile 'io.cucumber:cucumber-java8:5.4.0'
testCompile 'io.cucumber:cucumber-junit:5.4.0'
}
写了一个 *.feature 文件:
特征:所有 PIN 变体
Scenario: *********************
Given **************
When ******************* ****
Then ************************
我读过教程(网上有很多):我需要以某种方式生成步骤。我正在使用 IntellijIdea,我什么都不想推广,我该怎么办?我想我需要使用一些 tool/plugin,所以请告诉我搜索方向和最佳实践
The JetBrains documentation provides a bulletproof guide for this. If you've followed the setup properly, creating a step from a feature file is as simple as hovering over the step and pressing Option + Enter
on your keyboard as also mentioned in their documentation.
我有一个空的 java gradle 项目:
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile 'io.cucumber:cucumber-java8:5.4.0'
testCompile 'io.cucumber:cucumber-junit:5.4.0'
}
写了一个 *.feature 文件:
特征:所有 PIN 变体
Scenario: *********************
Given **************
When ******************* ****
Then ************************
我读过教程(网上有很多):我需要以某种方式生成步骤。我正在使用 IntellijIdea,我什么都不想推广,我该怎么办?我想我需要使用一些 tool/plugin,所以请告诉我搜索方向和最佳实践
The JetBrains documentation provides a bulletproof guide for this. If you've followed the setup properly, creating a step from a feature file is as simple as hovering over the step and pressing Option + Enter
on your keyboard as also mentioned in their documentation.