Always indent test names at 2 spaces with default listing

This makes the output slightly more parsable in cases where
using the xml output from xml reporter is impractical, e.g. from
CMake scripts.
This commit is contained in:
Martin Hořeňovský 2022-03-24 16:03:42 +01:00
parent 6227ca317e
commit a4e4e82474
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A

View File

@ -196,7 +196,7 @@ namespace Catch {
: Colour::None; : Colour::None;
auto colourGuard = streamColour->guardColour( colour ).engage( out ); auto colourGuard = streamColour->guardColour( colour ).engage( out );
out << TextFlow::Column(testCaseInfo.name).initialIndent(2).indent(4) << '\n'; out << TextFlow::Column(testCaseInfo.name).indent(2) << '\n';
if (verbosity >= Verbosity::High) { if (verbosity >= Verbosity::High) {
out << TextFlow::Column(Catch::Detail::stringify(testCaseInfo.lineInfo)).indent(4) << '\n'; out << TextFlow::Column(Catch::Detail::stringify(testCaseInfo.lineInfo)).indent(4) << '\n';
} }