Browse Source

test ansi sequence color in ruby script when test failed

hathach 13 years ago
parent
commit
ee27c783e2
1 changed files with 1 additions and 1 deletions
  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')%>
 %   hash[:results][:failures].each do |failure|
 %     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)
 : "<%=item[:message]%>"
 % else