当通过maven运行黄瓜测试时,出现重复StepDefinition错误。

问题描述 投票:-4回答:1

当我试图通过 "maven install "运行测试时,出现以下错误,当我删除目标文件夹时,工作正常。

 This typically happens when you configure cucumber to look for features in the root of your project.
    Your build tool creates a copy of these features in a 'target' or 'build'directory.
    If your features are on the class path consider using a class path URI.
    For example: 'classpath:com/example/app.feature'
    Otherwise you'll have to provide a more specific location
    Apr 30, 2020 1:48:43 PM io.cucumber.core.runtime.FeaturePathFeatureSupplier$FeatureBuilder addUnique
    SEVERE: Duplicate feature found: classpath:AppFeatures/EventLogging/gherkin/SignOn.feature was identical to classpath:Events/AppFeatures/EventLogging/gherkin/signOn.feature
maven selenium cucumber maven-surefire-plugin cucumber-java
1个回答
0
投票

就像错误信息说的那样:"这通常发生在你配置cucumber在项目的根目录下查找功能的时候。"改变你的配置,错误信息中也有建议。

(你没有提供任何关于你如何配置Cucumber或如何运行Cucumber的信息,所以我无法在这方面帮助你)

© www.soinside.com 2019 - 2024. All rights reserved.