<%= javascript_include_tag 'test_case_results.js' %>

<div id="test_cases">
  <% if build.failed_test_cases.any? %>
    <div id="failed">
      <%= render 'smoca_build/test_case_table',
                 :test_cases          => build.failed_test_cases,
                 :header              => 'Failed',
                 :linkable_test_cases => true
      %>
    </div>
  <% end %>

  <% if @build.passed_test_cases.any? %>
    <div id="passed">
      <%= render 'smoca_build/test_case_table',
                 :test_cases => build.passed_test_cases,
                 :header => 'Passed'
      %>
    </div>
  <% end %>

  <% if @build.skipped_test_cases.any? %>
    <div id="skipped">
      <%= render 'smoca_build/test_case_table',
                 :test_cases => build.skipped_test_cases,
                 :header => 'Skipped'
      %>
    </div>
  <% end %>
</div>
