【问题标题】:Eclipse Java Cucumber debug - how can I configure and run debug in cucumber maven project?Eclipse Java Cucumber 调试 - 如何在 cucumber maven 项目中配置和运行调试?
【发布时间】:2018-09-07 11:32:27
【问题描述】:

如何配置 Eclipse 以在黄瓜项目上运行调试? 我在特定的“Step”java 类中将断点置于给定条件下,并创建了 maven 构建配置文件,如图片附件,但调试不起作用。

谢谢!

【问题讨论】:

  • 我已经通过设定目标解决了:-Dmaven.surefire.debug test -DforkCount=0 test
  • 这是一个巨大的帮助,您应该将此评论添加为答案并标记为已接受:)

标签: java eclipse debugging cucumber maven-2


【解决方案1】:

您正在通过 maven commond 运行它,例如:

mvn clean install

但你需要使用 junit 或 testng 来运行它。

在您的步骤定义中放置一个调试点,并在调试部分以 junit/testng 运行项目

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-02-06
    • 1970-01-01
    • 1970-01-01
    • 2017-01-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-12-27
    相关资源
    最近更新 更多