我有一个空的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,我什么都不想推广,该怎么办?我想我需要使用一些工具/插件,所以请告诉我搜索位置和最佳做法
答案 0 :(得分:1)
The JetBrains documentation provides a bulletproof guide for this。如果您正确地进行了设置,则从功能文件中创建步骤就像将鼠标悬停在步骤上并在键盘as also mentioned in their documentation上按下Option + Enter
一样简单。