mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-15 09:55:39 +02:00
Tweaked indentation of errors and test lists
This commit is contained in:
@@ -56,12 +56,17 @@ namespace Catch {
|
||||
for( it = allTests.begin(); it != itEnd; ++it ) {
|
||||
if( matchesFilters( config.filters(), *it ) ) {
|
||||
matchedTests++;
|
||||
// !TBD: consider listAs()
|
||||
Text nameWrapper( it->getTestCaseInfo().name,
|
||||
TextAttributes().setWidth( maxNameLen ).setIndent(2) );
|
||||
TextAttributes()
|
||||
.setWidth( maxNameLen )
|
||||
.setInitialIndent(2)
|
||||
.setIndent(4) );
|
||||
|
||||
Text tagsWrapper( it->getTestCaseInfo().tagsAsString,
|
||||
TextAttributes().setWidth( maxTagLen ) );
|
||||
TextAttributes()
|
||||
.setWidth( maxTagLen )
|
||||
.setInitialIndent(0)
|
||||
.setIndent( 2 ) );
|
||||
|
||||
for( std::size_t i = 0; i < std::max( nameWrapper.size(), tagsWrapper.size() ); ++i ) {
|
||||
Colour::Code colour = Colour::None;
|
||||
|
Reference in New Issue
Block a user