Commit 669853bf authored by Matthias Vallentin's avatar Matthias Vallentin

Show green only if all tests pass; red otherwise

parent 7aa4e43c
...@@ -428,7 +428,7 @@ bool engine::run(bool colorize, ...@@ -428,7 +428,7 @@ bool engine::run(bool colorize,
} }
log.info() << '\n' << indent << "time: " << color(yellow) log.info() << '\n' << indent << "time: " << color(yellow)
<< render(runtime) << '\n' << color(reset) << indent << render(runtime) << '\n' << color(reset) << indent
<< "success: " << (total_bad > 0 ? color(green) : color(yellow)) << "success: " << (total_bad > 0 ? color(red) : color(green))
<< percent_good << "%" << color(reset) << "\n\n" << color(cyan) << percent_good << "%" << color(reset) << "\n\n" << color(cyan)
<< bar << color(reset) << '\n'; << bar << color(reset) << '\n';
return total_bad == total_bad_expected; return total_bad == total_bad_expected;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment