Ruby on rails 3 cucumber features输出中的蓝色虚线是否总是表示跳过?

Ruby on rails 3 cucumber features输出中的蓝色虚线是否总是表示跳过?,ruby-on-rails-3,cucumber,pickle,Ruby On Rails 3,Cucumber,Pickle,我知道features output中的蓝色破折号意味着该步骤被跳过,因为在失败之前发生了一些事情,但在我所有的场景大纲中,我都会看到蓝色破折号,但也有一行表示“全部通过” 这是我的场景提纲 Scenario Outline: Attempt to assign a role when not authorized Given a <user_who_can_not_assign_roles> exists with email: "johndoe@example.com"

我知道features output中的蓝色破折号意味着该步骤被跳过,因为在失败之前发生了一些事情,但在我所有的场景大纲中,我都会看到蓝色破折号,但也有一行表示“全部通过”

这是我的场景提纲

Scenario Outline: Attempt to assign a role when not authorized
  Given a <user_who_can_not_assign_roles> exists with email: "johndoe@example.com"
  And that user is signed in
  And I am on the user's show page
  And a role exists with name: "<other_role1>"
  And a role exists with name: "<other_role2>"
  When I follow "Edit"
  Then I should not see "Admin"
  And I should not see "Manager"
  And I should not see "Salesperson"
  When I fill in "username" with "spuds"
  And I fill in "password" with "potatoes"
  And I fill in "password confirmation" with "potatoes"
  And I fill in "email" with "spuds@gmail.com"
  And I press "Save"
  Then I should see "success"
  And a role should exist with name: "<other_role1>"
  And that role should not be one of the user's roles
  And a role should exist with name: "<other_role2>"
  And that role should not be one of the user's roles

  Examples:
    | user_who_can_not_assign_roles | other_role1 | other_role2 |
    | manager                       | Admin       | Salesperson |
    | salesperson                   | Admin       | Manager     |
场景大纲:未授权时尝试分配角色
给定一个电子邮件地址:johndoe@example.com"
并且该用户已登录
我在用户的显示页面上
并且存在一个名为“”的角色
并且存在一个名为“”的角色
当我遵循“编辑”时
那么我不应该看到“管理员”
我不应该看到“经理”
我不应该看到“推销员”
当我用“spuds”填写“username”时
我用“土豆”填“密码”
我用“土豆”填写“密码确认”
我在“电子邮件”中填上“spuds@gmail.com"
然后我按“保存”
那么我应该看“成功”
并且应该存在一个名为“”的角色
并且该角色不应该是用户的角色之一
并且应该存在一个名为“”的角色
并且该角色不应该是用户的角色之一
示例:
|不能分配角色的用户|其他角色1 |其他角色2|
|经理|行政|销售人员|
|销售员|行政|经理|
当我运行这个功能时,我得到了这个输出

-------------------

2个场景(2个已通过)
38步(通过38步)
0m3.300s

我得到了它的2个场景,因为我列出了2个示例,38个步骤将是19个运行两次。我不明白的是,为什么它会显示蓝色的破折号(就像它通常显示跳过的步骤),而它也会显示38个步骤已通过

我假设这是在运行大纲时使用的,因为如果我更改了用蓝色虚线标记的步骤,它将显示失败。我只是想在cucumber文档中找到一些确认信息,但什么也找不到


我正在运行rails 3.0.0、cucumber 0.9.3和pickle 0.4.2。

本例中的蓝色虚线表示对场景大纲的解析,它更多的是元数据而不是测试。我也感到困惑。要更好地了解正在发生的事情,请尝试执行:

cucumber -f pretty <your_fancy_scenario.feature>
cucumber-f pretty
这将迫使cucumber使用颜色编码显示实际场景文本,而不仅仅是点和破折号

希望有帮助