Sha256: 7cb9db968d013ea8b4a5f97092285efa09b24c491a07c299e3a765d24058b9b1

Contents?: true

Size: 1.84 KB

Versions: 26

Compression:

Stored size: 1.84 KB

Contents

% ignored        = hash[:results][:counts][:ignored]
% failed         = hash[:results][:counts][:failed]
% stdout_count   = hash[:results][:counts][:stdout]
% header_prepend = ((hash[:header].length > 0) ? "#{hash[:header]}: " : '')
% banner_width   = 25 + header_prepend.length # widest message

% if (ignored > 0)
<%=@ceedling[:plugin_reportinator].generate_banner(header_prepend + 'IGNORED UNIT TEST SUMMARY')%>
%   hash[:results][:ignores].each do |ignore|
[<%=ignore[:source][:file]%>]
%     ignore[:collection].each do |item|
  Test: <%=item[:test]%>
% if (not item[:message].empty?)
  At line (<%=item[:line]%>): "<%=item[:message]%>"
% else
  At line (<%=item[:line]%>)
% end

%     end
%   end
% end
% if (failed > 0)
<%=@ceedling[:plugin_reportinator].generate_banner(header_prepend + 'FAILED UNIT TEST SUMMARY')%>
%   hash[:results][:failures].each do |failure|
[<%=failure[:source][:file]%>]
%     failure[:collection].each do |item|
  Test: <%=item[:test]%>
% if (not item[:message].empty?)
  At line (<%=item[:line]%>): "<%=item[:message]%>"
% else
  At line (<%=item[:line]%>)
% end

%     end
%   end
% end
% if (stdout_count > 0)
<%=@ceedling[:plugin_reportinator].generate_banner(header_prepend + 'UNIT TEST OTHER OUTPUT')%>
%   hash[:results][:stdout].each do |string|
[<%=string[:source][:file]%>]
%     string[:collection].each do |item|
  - "<%=item%>"
%     end

%   end
% end
% total_string = hash[:results][:counts][:total].to_s
% format_string = "%#{total_string.length}i"
<%=@ceedling[:plugin_reportinator].generate_banner(header_prepend + 'OVERALL UNIT TEST SUMMARY')%>
% if (hash[:results][:counts][:total] > 0)
TESTED:  <%=hash[:results][:counts][:total].to_s%>
PASSED:  <%=sprintf(format_string, hash[:results][:counts][:passed])%>
FAILED:  <%=sprintf(format_string, failed)%>
IGNORED: <%=sprintf(format_string, ignored)%>
% else

No tests executed.
% end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
ceedling-0.15.2 plugins/stdout_pretty_tests_report/assets/template.erb
ceedling-0.15.1 plugins/stdout_pretty_tests_report/assets/template.erb
ceedling-0.15.0 plugins/stdout_pretty_tests_report/assets/template.erb
ceedling-0.13.0 plugins/stdout_pretty_tests_report/assets/template.erb
ceedling-0.13.0.rc1 plugins/stdout_pretty_tests_report/assets/template.erb
ceedling-0.12.2 new_project_template/vendor/ceedling/plugins/stdout_pretty_tests_report/assets/template.erb
ceedling-0.12.1 new_project_template/vendor/ceedling/plugins/stdout_pretty_tests_report/assets/template.erb
ceedling-0.12.0 new_project_template/vendor/ceedling/plugins/stdout_pretty_tests_report/assets/template.erb
ceedling-0.11.2 new_project_template/vendor/ceedling/plugins/stdout_pretty_tests_report/assets/template.erb
ceedling-0.11.1 new_project_template/vendor/ceedling/plugins/stdout_pretty_tests_report/assets/template.erb
ceedling-0.11.0 new_project_template/vendor/ceedling/plugins/stdout_pretty_tests_report/assets/template.erb
ceedling-0.10.0 new_project_template/vendor/ceedling/plugins/stdout_pretty_tests_report/assets/template.erb
ceedling-0.9.4 new_project_template/vendor/ceedling/plugins/stdout_pretty_tests_report/template.erb
ceedling-0.9.2 new_project_template/vendor/ceedling/plugins/stdout_pretty_tests_report/template.erb
ceedling-0.9.0 new_project_template/vendor/ceedling/plugins/stdout_pretty_tests_report/template.erb
ceedling-0.0.18 new_project_template/vendor/ceedling/plugins/stdout_pretty_tests_report/template.erb
ceedling-0.0.17 new_project_template/vendor/ceedling/plugins/stdout_pretty_tests_report/template.erb
ceedling-0.0.16 new_project_template/vendor/ceedling/plugins/stdout_pretty_tests_report/template.erb
ceedling-0.0.15 new_project_template/vendor/ceedling/plugins/stdout_pretty_tests_report/template.erb
ceedling-0.0.14 new_project_template/vendor/ceedling/plugins/stdout_pretty_tests_report/template.erb