Parcourir la source

test ansi sequence color in ruby script when test failed

hathach il y a 13 ans
Parent
commit
ee27c783e2
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      tests/vendor/ceedling/lib/defaults.rb

+ 1 - 1
tests/vendor/ceedling/lib/defaults.rb

@@ -345,7 +345,7 @@ DEFAULT_TESTS_RESULTS_REPORT_TEMPLATE = %q{
 <%=@ceedling[:plugin_reportinator].generate_banner(header_prepend + 'FAILED UNIT TEST SUMMARY')%>
 <%=@ceedling[:plugin_reportinator].generate_banner(header_prepend + 'FAILED UNIT TEST SUMMARY')%>
 %   hash[:results][:failures].each do |failure|
 %   hash[:results][:failures].each do |failure|
 %     failure[:collection].each do |item|
 %     failure[:collection].each do |item|
-<%=failure[:source][:path]%><%=File::SEPARATOR%><%=failure[:source][:file]%>:<%=item[:line]%>:<%=item[:test]%>
+"\e[31m" <%=failure[:source][:path]%><%=File::SEPARATOR%><%=failure[:source][:file]%>:<%=item[:line]%>:<%=item[:test]%>
 % if (item[:message].length > 0)
 % if (item[:message].length > 0)
 : "<%=item[:message]%>"
 : "<%=item[:message]%>"
 % else
 % else