module RubyQA module Template require 'erb' BASE_REPORT_TEMPLATE=ERB.new(< QA Runner: <%= ENV['USER'] %> QA Tests: <%= Manager.tests.count %> <% Manager.tests.each do |test| -%> - "<%= test.name %>" <% end -%> QA Hosts: <% Manager.hosts.each do |host| -%> - <%= host.name %> (<%= host[:ip] %>) <% end -%> ############### # Tests Begin # ############### <% Manager.tests.each do |test| -%> <%= test.report %> <% end -%> ERB BASE_TEST_TEMPLATE = ERB.new(< '-') ============================================== Test : "<%= @name %>" <%- if not @description.empty? -%> Description : "<%= @description %>" <% end -%> ============================================== <% @tests.each do |hostname,data| -%> <%= hostname %> : <%= data[:status] %> <% if data[:context].has_key? :note %> (<%= data[:context][:note] %>) <% end %> <% end -%> EOF end end