Overview

Tests
<% if @hash['minitest'] && @hash['minitest']['total_failures'] %>
<% passed = @hash['minitest']['total_tests'] - (@hash['minitest']['total_failures'] + @hash['minitest']['total_errors'] + @hash['minitest']['total_skipped']) %>
<%= passed %>
Passed
<% if @hash['minitest']['total_failures'] > 0 %>
<%= @hash['minitest']['total_failures'] %>
<% else %>
<%= @hash['minitest']['total_failures'] %>
<% end %>
Failures
<% if @hash['minitest']['total_errors'] > 0 %>
<%= @hash['minitest']['total_errors'] %>
<% else %>
<%= @hash['minitest']['total_errors'] %>
<% end %>
Errors
<% else %>

No Data
<% end %>
OpenStudio Style
<% if @hash['openstudio_style'] %>
issues
<% else %>

No Data
<% end %>
RuboCop
<% if @hash['rubocop'] %>
issues
<% else %>

No Data
<% end %>
Coverage
<% if @hash['coverage'] %>
%
<% else %>

No Data
<% end %>

Measures

<% max = 0 %> <% test_type = ''%> <% ['coverage', 'openstudio_style', 'rubocop'].each do |type| %> <% if @hash[type] && @hash[type]['by_measure'] %> <% if @hash[type]['by_measure'].length > max %> <% max = @hash[type]['by_measure'].length %> <% test_type = type %> <% end %> <% end %> <% end %> <% if test_type != '' %> <% @hash[test_type]['by_measure'].each do |name, measure| %> <% end %> <% end %>
Measure Name Tests
Passed - Failures - Errors
OS Style Errors
Errors - Warnings - Info
RuboCop
Errors - Warnings - Info
Coverage  
<%= name %> <% if @hash['minitest'] && @hash['minitest']['by_measure'] && @hash['minitest']['by_measure'][name] %> <% passed = @hash['minitest']['by_measure'][name]['measure_tests'] - (@hash['minitest']['by_measure'][name]['measure_failures'] + @hash['minitest']['by_measure'][name]['measure_errors'] + @hash['minitest']['by_measure'][name]['measure_skipped']) %> <%= passed %> <% if @hash['minitest']['by_measure'][name]['measure_failures'] > 0 %> <% label = 'danger' %> <% else %> <% label = 'success' %> <% end %> <%= @hash['minitest']['by_measure'][name]['measure_failures'] %> <% if @hash['minitest']['by_measure'][name]['measure_errors'] > 0 %> <% label = 'danger' %> <% else %> <% label = 'success' %> <% end %> <%= @hash['minitest']['by_measure'][name]['measure_errors'] %> <% end %> <% if @hash['openstudio_style'] && @hash['openstudio_style']['by_measure'][name] %> <% if @hash['openstudio_style']['by_measure'][name]['measure_errors'] > 0 %> <%= @hash['openstudio_style']['by_measure'][name]['measure_errors'] %> <% elsif @hash['openstudio_style']['by_measure'][name]['measure_errors'] == 0 %> <%= @hash['openstudio_style']['by_measure'][name]['measure_errors'] %> <% end %> <% if @hash['openstudio_style']['by_measure'][name]['measure_warnings'] > 0 %> <%= @hash['openstudio_style']['by_measure'][name]['measure_warnings'] %> <% end %> <% if @hash['openstudio_style']['by_measure'][name]['measure_info'] > 0 %> <%= @hash['openstudio_style']['by_measure'][name]['measure_info'] %> <% end %> <% end %> <% if @hash['rubocop'] && @hash['rubocop']['by_measure'][name] %> <% if @hash['rubocop']['by_measure'][name]['measure_errors'] > 0 %> <%= @hash['rubocop']['by_measure'][name]['measure_errors'] %> <% elsif @hash['rubocop']['by_measure'][name]['measure_errors'] == 0 %> <%= @hash['rubocop']['by_measure'][name]['measure_errors'] %> <% end %> <% if @hash['rubocop']['by_measure'][name]['measure_warnings'] > 0 %> <%= @hash['rubocop']['by_measure'][name]['measure_warnings'] %> <% end %> <% if @hash['rubocop']['by_measure'][name]['measure_info'] > 0 %> <%= @hash['rubocop']['by_measure'][name]['measure_info'] %> <% end %> <% end %> <% if @hash['coverage'] && @hash['coverage']['by_measure'][name] %> <% if @hash['coverage']['by_measure'][name]['percent_coverage'] >= 80 %> <% label = 'success' %> <% elsif @hash['coverage']['by_measure'][name]['percent_coverage'] >= 60 %> <% label = 'warning' %> <% else %> <% label = 'danger' %> <% end %> <%= @hash['coverage']['by_measure'][name]['percent_coverage'] %> % <% end %>