首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Cucumber Java最新版本

Cucumber Java最新版本
EN

Stack Overflow用户
提问于 2020-06-24 08:32:03
回答 1查看 747关注 0票数 0

在那里我可以获得Java的最新Test Runner类格式和cucumber依赖项。我有旧的依赖项,它可以工作,但现在这些太旧了,不能。我创建了新的POM文件,但是现在我的TestRunner文件有红色的错误行,并且我无法运行我的测试。我已经在下面复制了我的新旧依赖项。请让我知道我在这里错过了什么。我是否需要更多的依赖项,或者这些就足够了。

旧的POM:(对于旧的依赖,当我尝试运行我的功能文件时,我得到了以下错误:

插件:未知选项:--cucumber.runtime.CucumberException

代码语言:javascript
复制
<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>
EN

回答 1

Stack Overflow用户

发布于 2020-06-26 21:39:54

不,我手动更新我的pom.xml文件。从maven库中获得了新的依赖项。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/62545780

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档