提交 cb609d75 编写于 作者: K Kasper Timm Hansen

Color failure line by result code.

The static red color wouldn't paint skips in their designated yellow.

Use the color name we got from the result label earlier, which marks
skips as yellow.
上级 33804c7d
......@@ -33,7 +33,7 @@ def record(result)
if output_inline? && result.failure && (!result.skipped? || options[:verbose])
io.puts
io.puts
io.puts format_failures(result).map { |line| color(line, :red) }
io.puts format_failures(result).map { |line| color(line, color) }
io.puts
io.puts format_rerun_snippet(result)
io.puts
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册