2017-10-06 80 views
1

每次我尝试在功能文件中运行单个功能文件或单个场景时,它都会在intellij中创建新的配置文件。该Glue属性是空的,Feature or folder path位于特定功能的文件,该场景的特征文件:试图运行一个单一的特征文件或单个后如何运行单个场景

enter image description here

enter image description here

的错误场景是:

Undefined step: ....对于我试图运行的功能文件/场景中的每一步。

对这个问题有没有帮助,而不是创建1000个配置?


我的依赖关系:

<dependency> 
    <groupId>info.cukes</groupId> 
    <artifactId>cucumber-java8</artifactId> 
    <version>1.2.5</version> 
    <scope>test</scope> 
</dependency> 
<dependency> 
    <groupId>junit</groupId> 
    <artifactId>junit</artifactId> 
    <version>4.12</version> 
    <scope>test</scope> 
</dependency> 
<dependency> 
    <groupId>info.cukes</groupId> 
    <artifactId>cucumber-jvm</artifactId> 
    <version>1.2.5</version> 
    <type>pom</type> 
</dependency> 
<dependency> 
    <groupId>info.cukes</groupId> 
    <artifactId>cucumber-junit</artifactId> 
    <version>1.2.4</version> 
    <scope>test</scope> 
</dependency> 

回答

0

你有参与黄瓜的两个不同的版本。 1.2.4和1.2.5,是你有问题的原因吗?

0

如果您的步骤定义文件位于命名包下(不是在test-> java下),IDEA会自动添加“胶水”。 我检查了这个例子http://github.com/czeczotka/cucumber-jvm-maven与你的依赖关系,它似乎工作正常。

相关问题