test ansi sequence color in ruby script when test failed

This commit is contained in:
hathach 2013-05-09 16:42:03 +07:00
parent 5fbbddc56a
commit ee27c783e2

View File

@ -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