【问题标题】:Intellij doesn't recognize my step definitionsIntellij 无法识别我的步骤定义
【发布时间】:2021-11-17 13:37:46
【问题描述】:

我正在将黄瓜项目升级到黄瓜 6。但升级后 intellij 不再识别我的步骤。当我通过我的 pom 运行时,没有问题。但是如果您尝试从功能文件中进入步骤定义,intellij 说没有步骤定义

我的跑步者是这样的

package be.nbb.hive.cucumber;

import io.cucumber.junit.CucumberOptions;
import net.serenitybdd.cucumber.CucumberWithSerenity;
import org.junit.runner.RunWith;

@RunWith(CucumberWithSerenity.class)
@CucumberOptions(
        plugin = {"pretty"},
        features = "src/test/resources/features",
        glue = {"be.nbb.hive.cucumber.Steps"}
)
public class CucumberTestSuite {}

我的步骤在包里

package be.nbb.hive.cucumber.Steps;

这是问题还是其他阻碍识别的原因?

【问题讨论】:

  • 也许您可以使缓存无效并重新启动intelliJ?
  • 那没有解决它
  • 在升级到 cucumber6 和最新版本的 serenity 后可能会出现一些问题

标签: intellij-idea cucumber cucumber-serenity


【解决方案1】:

我有类似的问题。从市场安装 cucumber for javagherkin IntelliJ 插件为我解决了这个问题

【讨论】:

  • 我都已经安装了
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2021-09-06
  • 1970-01-01
  • 2014-01-10
  • 2020-06-01
  • 1970-01-01
  • 1970-01-01
  • 2017-03-27
相关资源
最近更新 更多