Intellij:在场景大纲中运行一个Cucumber示例,就像我运行场景一样

时间:2017-09-15 17:23:09

标签: intellij-idea cucumber-jvm intellij-plugin cucumber-java cucumber-junit

在Intellij中我想运行一个"例子" in" Scenario Outline"就像我右键单击并运行一个" Scenario"。当我尝试它时,它运行所有示例,junit结果页面中的一个步骤即使在完成后也有一个旋转轮。我缺少什么(我不想每次都编辑运行配置)?

我也可以使用普通的junit运行它 - 但问题是我无法双击junit窗格中的步骤并转到功能文件步骤

例如,我想右键单击并运行以下

中的@ case2示例

Scenario Outline: Perform Some examples of Similar scenario

Given I do <something>

@case1

Examples:

|something |

|case1 |

@case2

Examples:

|something |

|case |

1 个答案:

答案 0 :(得分:0)

您可以尝试从命令行运行示例,方法是指定行号(类似path/file.feature:8),或者为要运行的特定示例添加标记,并指定要在其中运行的标记你的跑步者。

相关问题