mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-16 10:42:25 +01:00
parent
62fd660583
commit
561fe26cd5
@ -547,8 +547,8 @@ void ConsoleReporter::printTestCaseAndSectionHeader() {
|
|||||||
auto
|
auto
|
||||||
it = m_sectionStack.begin() + 1, // Skip first section (test case)
|
it = m_sectionStack.begin() + 1, // Skip first section (test case)
|
||||||
itEnd = m_sectionStack.end();
|
itEnd = m_sectionStack.end();
|
||||||
for (; it != itEnd; ++it)
|
for (size_t indent = 2; it != itEnd; ++it, indent += 2)
|
||||||
printHeaderString(it->name, 2);
|
printHeaderString(it->name, indent);
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLineInfo lineInfo = m_sectionStack.back().lineInfo;
|
SourceLineInfo lineInfo = m_sectionStack.back().lineInfo;
|
||||||
|
@ -9077,10 +9077,10 @@ Scenario: This is a really long scenario name to see how the list command deals
|
|||||||
with wrapping
|
with wrapping
|
||||||
Given: A section name that is so long that it cannot fit in a single
|
Given: A section name that is so long that it cannot fit in a single
|
||||||
console width
|
console width
|
||||||
When: The test headers are printed as part of the normal running of the
|
When: The test headers are printed as part of the normal running of
|
||||||
scenario
|
the scenario
|
||||||
Then: The, deliberately very long and overly verbose (you see what I did
|
Then: The, deliberately very long and overly verbose (you see what I
|
||||||
there?) section names must wrap, along with an indent
|
did there?) section names must wrap, along with an indent
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
BDD.tests.cpp:<line number>
|
BDD.tests.cpp:<line number>
|
||||||
...............................................................................
|
...............................................................................
|
||||||
|
@ -16647,8 +16647,8 @@ void ConsoleReporter::printTestCaseAndSectionHeader() {
|
|||||||
auto
|
auto
|
||||||
it = m_sectionStack.begin() + 1, // Skip first section (test case)
|
it = m_sectionStack.begin() + 1, // Skip first section (test case)
|
||||||
itEnd = m_sectionStack.end();
|
itEnd = m_sectionStack.end();
|
||||||
for (; it != itEnd; ++it)
|
for (size_t indent = 2; it != itEnd; ++it, indent += 2)
|
||||||
printHeaderString(it->name, 2);
|
printHeaderString(it->name, indent);
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLineInfo lineInfo = m_sectionStack.back().lineInfo;
|
SourceLineInfo lineInfo = m_sectionStack.back().lineInfo;
|
||||||
|
Loading…
Reference in New Issue
Block a user