<% 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] %>" <% if testsuite[:number_of_skipped] %>skipped="<%= testsuite[:number_of_skipped] %>" <% end %>time="<%= testsuite[:duration] %>"> <% unless testsuite[:configuration_name].nil? %> <% end %> <% testsuite[:tests].each do |test| %> :attr) %> name=<%= test[:name].encode(:xml => :attr) %> time="<%= test[:duration] %>"> <% (test[:failures] || []).each do |failure| %> :attr) %>> <% end %> <% if test[:skipped] %> <% end %> <% end %> <% end %>