在那里我可以获得Java的最新Test Runner类格式和cucumber依赖项。我有旧的依赖项,它可以工作,但现在这些太旧了,不能。我创建了新的POM文件,但是现在我的TestRunner文件有红色的错误行,并且我无法运行我的测试。我已经在下面复制了我的新旧依赖项。请让我知道我在这里错过了什么。我是否需要更多的依赖项,或者这些就足够了。
旧的POM:(对于旧的依赖,当我尝试运行我的功能文件时,我得到了以下错误:
插件:未知选项:--cucumber.runtime.CucumberException
<dependencies>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-picocontainer</artifactId>
<version>1.1.8</version>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-junit</artifactId>
<version>1.1.8</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-server</artifactId>
<version>2.42.2</version>
</dependency>
</dependencies>
NEW POM: (if I use following new dependencies, my TESTRUNNER has red lines under"@CucumberOptions"
<!-- https://mvnrepository.com/artifact/info.cukes/cucumber-picocontainer -->
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-picocontainer</artifactId>
<version>1.2.5</version>
</dependency>
<!-- https://mvnrepository.com/artifact/info.cukes/cucumber-junit -->
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-junit</artifactId>
<version>1.2.5</version>
</dependency>
<!-- https://mvnrepository.com/artifact/junit/junit -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-server -->
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-server</artifactId>
<version>3.141.59</version>
</dependency>发布于 2020-06-26 21:39:54
不,我手动更新我的pom.xml文件。从maven库中获得了新的依赖项。
https://stackoverflow.com/questions/62545780
复制相似问题