IntelliJ Cucumber.js测试报告仅显示重复使用的步骤一次

时间:2015-10-16 14:07:06

标签: javascript intellij-idea bdd cucumberjs

我使用Cucumber.js插件在IntelliJ中执行我的功能。我注意到了一些问题。

我有一个包含多个场景的功能文件。在那之间重用一些步骤。在测试结果中,我只看到一些步骤。

示例:

Feature: My Feature

Scenario: First
  Given some context
  When I perform action A
  Then I should get A results

Scenario: Second
  Given some context
  When I perform action B
  Then I should get B results

测试结果将显示以下内容:

Feature: My Feature    
    Scenario: First
      Step: some context
      Step: I perform action A
      Step: I should get A results

    Scenario: Second      
      Step: I perform action B
      Step: I should get B results

请注意,第二个方案中缺少给定步骤。

当我在控制台中运行cucumber.js时,一切都很好。

有什么建议吗?

0 个答案:

没有答案