Sha256: b5be0c3a4fc2c5d14ca7dec7c0ffa15f77caae78fdd13165d1e3ef2ec7929195

Contents?: true

Size: 1.82 KB

Versions: 21

Compression:

Stored size: 1.82 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 (stdout_count > 0)
<%=@ceedling[:plugin_reportinator].generate_banner(header_prepend + 'TEST OUTPUT')%>
%   hash[:results][:stdout].each do |string|
[<%=string[:source][:file]%>]
%     string[:collection].each do |item|
  - "<%=item%>"
%     end

%   end
% end
% if (ignored > 0)
<%=@ceedling[:plugin_reportinator].generate_banner(header_prepend + 'IGNORED 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 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
% total_string = hash[:results][:counts][:total].to_s
% format_string = "%#{total_string.length}i"
<%=@ceedling[:plugin_reportinator].generate_banner(header_prepend + 'OVERALL 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

21 entries across 21 versions & 1 rubygems

Version Path
ceedling-0.31.1 plugins/stdout_pretty_tests_report/assets/template.erb
ceedling-0.31.0 plugins/stdout_pretty_tests_report/assets/template.erb
ceedling-0.30.0 plugins/stdout_pretty_tests_report/assets/template.erb
ceedling-0.28.3 plugins/stdout_pretty_tests_report/assets/template.erb
ceedling-0.28.2 plugins/stdout_pretty_tests_report/assets/template.erb
ceedling-0.28.1 plugins/stdout_pretty_tests_report/assets/template.erb
ceedling-0.27.0 plugins/stdout_pretty_tests_report/assets/template.erb
ceedling-0.25.0 plugins/stdout_pretty_tests_report/assets/template.erb
ceedling-0.24.0 plugins/stdout_pretty_tests_report/assets/template.erb
ceedling-0.22.0 plugins/stdout_pretty_tests_report/assets/template.erb
ceedling-0.21.0 plugins/stdout_pretty_tests_report/assets/template.erb
ceedling-0.20.3 plugins/stdout_pretty_tests_report/assets/template.erb
ceedling-0.20.2 plugins/stdout_pretty_tests_report/assets/template.erb
ceedling-0.19.0 plugins/stdout_pretty_tests_report/assets/template.erb
ceedling-0.18.0 plugins/stdout_pretty_tests_report/assets/template.erb
ceedling-0.17.0 plugins/stdout_pretty_tests_report/assets/template.erb
ceedling-0.16.0 plugins/stdout_pretty_tests_report/assets/template.erb
ceedling-0.15.6 plugins/stdout_pretty_tests_report/assets/template.erb
ceedling-0.15.5 plugins/stdout_pretty_tests_report/assets/template.erb
ceedling-0.15.4 plugins/stdout_pretty_tests_report/assets/template.erb