首页 > 解决方案 > Intellij IDEA - 为特征文件提供 2 种类型的步骤片段

问题描述

我正在使用带有 Groovy/Java 的 Intellij IDEA,当我运行一个新的功能文件时,缺少的步骤片段总是有两种类型

如何让 Intellij 只给我一套?

我尝试过更改依赖项并询问松弛

Given(/there is a report on interest/) {  ->
    // Write code here that turns the phrase above into concrete actions
    throw new PendingException()
}

@Given("there is a report on interest")
public void there_is_a_report_on_interest() {
    // Write code here that turns the phrase above into concrete actions
    throw new cucumber.api.PendingException();
}

我希望只从 Intellij IDEA 获得上述类型中的一种。

标签: javaintellij-ideagroovycucumber

解决方案


推荐阅读