运行maven时cucumber测试的duplicateStepDefinition错误
尝试通过下面的“maven install”运行测试时出错,删除目标文件夹时工作正常。运行maven时cucumber测试的duplicateStepDefinition错误,maven,selenium,cucumber,maven-surefire-plugin,cucumber-java,Maven,Selenium,Cucumber,Maven Surefire Plugin,Cucumber Java,尝试通过下面的“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 feat
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
正如错误消息所说:“这通常发生在配置cucumber以在项目根目录中查找功能时。” 按照错误消息中的建议更改配置 (您没有提供有关如何配置Cucumber或如何运行Cucumber的任何信息,因此我无法帮助您)