diff options
| author | Martin Hořeňovský | 2022-03-06 19:20:53 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2022-03-08 12:51:13 +0100 |
| commit | 913f79a661a02be5791be9bdf2b8ee123579b51d (patch) | |
| tree | 10ea8909ab64d3dcece21da18514baa54594b435 /tests/SelfTest/UsageTests/ToStringVector.tests.cpp | |
| parent | 06f74a0f8e505a08fff58e63beeb88569d8629d6 (diff) | |
| download | catch3-913f79a661a02be5791be9bdf2b8ee123579b51d.tar.gz | |
Each reporter keeps its own colour implementation
This opens path to per-reporter colour output customization,
and fixes multiple issues with the old colour implementation.
Under the old implementation, using Win32-backed colouring
would always change the colour used by the console, even if the
actual output was written elsewhere, such as a file passed by
the `--out` flag. This will no longer happen, as the reporter's
colour impl will check that the reporter's stream is pointed
to console before trying to change the colours.
POSIX/ANSI colour implementation suffered a similar-ish issue,
in that it only wrote the colour escape codes into the default
output stream, even if the reporter asking for colouring was
actually writing to a completely different output stream.
Diffstat (limited to 'tests/SelfTest/UsageTests/ToStringVector.tests.cpp')
0 files changed, 0 insertions, 0 deletions