Cucumber Features

Expand All

Collapse All

<% @features.each do |feature| %>

Feature: <%= feature['short_name'] %>

<%= feature['description'].join '
' %>

<% feature['scenarios'].each do |scenario| %>
<%= scenario['file_colon_line'] %>

<%= scenario['keyword'] %>: <%= scenario['name'] %>

    <% scenario['steps'].each do |step| %>
  1. <%= step['keyword'] %><%= step['name'] %>
    <%= step['file_colon_line'] %>
    <% if step['exception'] %>
    <%= step['exception']['message'] %>
    <%= step['exception']['backtrace'].gsub('\n', '
    ') %>
    <%= snippet step['exception'] %> <% end %> <% unless step['table'].empty? %> <% step['table'].each_with_index do |rowdata, row| %> <% rowdata.each_with_index do |value, col| %> <% end %> <% end %>
    <%= value %>
    <% end %> <% if step['multiline_string'] %>
    <%= step['multiline_string'] %>
    <% end %>
  2. <% end %>
<% end %>
<% end %>