【发布时间】:2020-12-27 12:08:17
【问题描述】:
我使用 JUnit5 并尝试使用命令从 maven-3.6.3 cli 运行 JUnit 和 Cucumber 测试
mvn clean verify
但在控制台中我得到的输出只有一种测试或只有 JUnit 测试或只有 Cucumber 测试。经过一番调查,我发现它与这种依赖关系有关
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-testng</artifactId>
<version>6.6.0</version>
</dependency>
有了这个依赖,就有了 Cucumber 测试运行而没有 JUnit 测试。 找不到同时运行这两种测试的方法。
【问题讨论】: