<% tests.each do |test| %> <% test.steps.each do |step| %> <% if step.has_output? %> ]]> <% end %> <% if step.failed? %> <% end %> <% end %> <% end %>