<% number_of_tests = 0 %> <% number_of_failures = 0 %> <% @results.each { |a| number_of_tests += a[:number_of_tests_excluding_retries] } %> <% @results.each { |a| number_of_failures += a[:number_of_failures_excluding_retries] } %> <% @results.each do |testsuite| %> :attr) %> tests="<%= testsuite[:number_of_tests_excluding_retries] %>" failures="<%= testsuite[:number_of_failures_excluding_retries] %>" time="<%= testsuite[:duration] %>"> <% testsuite[:tests].each do |test| %> :attr) %> name=<%= test[:name].encode(:xml => :attr) %> time="<%= test[:duration] %>"> <% (test[:failures] || []).each do |failure| %> :attr) %>> <% end %> <% end %> <% end %>