Sha256: 34a793c7862056b479bb45b0e2adf0834a512f2d953ac959e7d84b765436b7b7

Contents?: true

Size: 1.92 KB

Versions: 9

Compression:

Stored size: 1.92 KB

Contents

<h1 class="project-banner <%= @project.color %>" style="margin-bottom: 12px;">
  <small>Tests for</small> <%= @project.name %>
</h1>

<div class="nomargin">
  <table id="project_tests" class="table table-sortable table-striped project-tests">
    <thead>
      <tr>
        <td class="table-margin"></td>
        <th class="test-name sort-asc">Name</th>
        <th class="test-passes">Passes</th>
        <th class="test-fails">Fails</th>
        <th class="test-graph">Graph</th>
        <th class="test-duration">Duration</th>
        <td class="table-margin"></td>
      </tr>
    </thead>
    <tbody>
      <% @tests.each do |test| %>
        <tr class="test">
          <td class="table-margin"></td>
          <td class="test-name">
            <%= link_to project_test_url(slug: @project.slug, id: test[:id]) do %>
              <span class="test-suite-name"><%= test[:suite].gsub("__", "::") %></span>
              <span class="test-name"><%= test[:name].to_s.gsub(/^(test :|: )/, "") %></span>
            <% end %>
          </td>
          <td class="test-passes"><%= test_results_pass_count(test)%></td>
          <td class="test-fails"><%= test_results_fail_count(test)%></td>
          <td class="test-graph" data-position="<%= test_results_count(test) %>"><%= test_results_graph(test) %></td>
          <td class="test-duration">
            <span class="test-duration-average"><%= test[:duration_avg].to_i %>ms</span>
            <span class="test-duration-range">
              <%= test[:duration5].to_i %>ms &ndash; <%= test[:duration95].to_i %>ms
            </span>
          </td>
          <td class="table-margin"></td>
        </tr>
      <% end %>
    </tbody>
  </table>
</div>

<% content_for :javascripts do %>
  <script type="text/javascript">
    $(function() {
      $('#project_tests').tablesorter({
        headers: {
          4: {sorter: 'property'},
          5: {sorter: 'digit'}
        }
      });
    });
  </script>
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
houston-core-0.8.0.pre app/views/project_tests/index.html.erb
houston-core-0.7.0 app/views/project_tests/index.html.erb
houston-core-0.7.0.beta4 app/views/project_tests/index.html.erb
houston-core-0.7.0.beta3 app/views/project_tests/index.html.erb
houston-core-0.7.0.beta2 app/views/project_tests/index.html.erb
houston-core-0.7.0.beta app/views/project_tests/index.html.erb
houston-core-0.6.3 app/views/project_tests/index.html.erb
houston-core-0.6.2 app/views/project_tests/index.html.erb
houston-core-0.6.1 app/views/project_tests/index.html.erb