Test Results
<%= test_count %>
tests
<% if fail_count > 0 %>
<%= fail_count %>
failures
<% end %>
All
Failing
Passing
<% test_suites.each do |name, info| %> <% next unless info[:tests].size > 0 %>
<%= name %>
<% unless info[:screenshots].empty? %>
<% info[:screenshots].each_with_index do |screenshot, index| %>
<% end %>
<% end %>
<% info[:tests].each_with_index do |test, index| %> <% detail_class = test[:name].gsub(/\s/,'') %>
<% if test[:time] %>
<%= test[:time] %>s
<% end %>
<%= test[:name] %>
<% if test[:reason] || test[:snippet] %>
<% if test[:reason] %>
<%= test[:reason] %>
<% end %> <% if test[:snippet] %>
<%= test[:snippet] %>
<%= test[:file] %>
<% end %>
<% end %> <% end %>
<% end %>