Sha256: 5aff6c438a0580549719e6ce3414ae9bf35dd5f268f84883fdda037427fa65de

Contents?: true

Size: 1.44 KB

Versions: 25

Compression:

Stored size: 1.44 KB

Contents

<div id="<%= test_name %>">
  <% %w{failures successes}.each do |result_type| %>
    <table class="list tablesorter" cellspacing="0">
      <caption><%= send(result_type).size %> <%= result_type.capitalize %></caption>
      <thead>
        <tr>
          <th class="sort asc"><span>URL</span><span class="sort">&nbsp;</span></th>
          <th><span>Action</span><span class="sort">&nbsp;</span></th>
          <th><span>Response</span><span class="sort">&nbsp;</span></th>
          <th class="left"><span>Description</span><span class="sort">&nbsp;</span></th>
          <th><span>Referrer</span><span class="sort">&nbsp;</span></th>
        </tr>
      </thead>
      <tfoot>
         <tr><td colspan="5">&nbsp;</td></tr>
      </tfoot>
      
      <tbody>
        <% send(result_type).sort{|x,y| y.code.to_s <=> x.code.to_s}.each_with_index do |result,i| %>
          <tr class="<%= (i%2 == 0) ? 'even' : 'odd' %>">
            <td class="left"><a href="<%= "#{test_name}/#{result.file_name}" %>"><%= result.url.ellipsize(50) %></a></td>
            <td class="method"><%= result.method.to_s.upcase %></td> <!-- TODO Clean up demeter violation -->
            <td><span class="<%= class_for_code(result.code) %>"><%= result.code %></span></td>
            <td class="left"><%= result.description %></td>
            <td class="left"><%= result.referrer.ellipsize(30) %></td>
          </tr>
        <% end %>
      </tbody>
    </table>       
    <br/>
  <% end %>
</div>

Version data entries

25 entries across 25 versions & 6 rubygems

Version Path
codez-tarantula-0.5.5 lib/relevance/tarantula/test_report.html.erb
codez-tarantula-0.5.4 lib/relevance/tarantula/test_report.html.erb
relevance-tarantula-0.1.6 lib/relevance/tarantula/test_report.html.erb
relevance-tarantula-0.1.7 lib/relevance/tarantula/test_report.html.erb
relevance-tarantula-0.1.8 lib/relevance/tarantula/test_report.html.erb
relevance-tarantula-0.2.0 lib/relevance/tarantula/test_report.html.erb
relevance-tarantula-0.2.1 lib/relevance/tarantula/test_report.html.erb
relevance-tarantula-0.3.2 lib/relevance/tarantula/test_report.html.erb
relevance-tarantula-0.3.3 lib/relevance/tarantula/test_report.html.erb
romanbsd-tarantula-0.1.8 lib/relevance/tarantula/test_report.html.erb
romanbsd-tarantula-0.2.0 lib/relevance/tarantula/test_report.html.erb
codez-tarantula-0.5.3 lib/relevance/tarantula/test_report.html.erb
codez-tarantula-0.5.1 lib/relevance/tarantula/test_report.html.erb
codez-tarantula-0.5.0 lib/relevance/tarantula/test_report.html.erb
tarantula-0.5.1 lib/relevance/tarantula/test_report.html.erb
tarantula-0.5.0 lib/relevance/tarantula/test_report.html.erb
tarantula-0.4.3 lib/relevance/tarantula/test_report.html.erb
tarantula-0.4.2 lib/relevance/tarantula/test_report.html.erb
tarantula-0.4.1 lib/relevance/tarantula/test_report.html.erb
tarantula-0.4.0 lib/relevance/tarantula/test_report.html.erb