mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-29 16:53:30 +01:00
CumulativeReporterBase stores TestRunNodes directly
This commit is contained in:
parent
e5ccb79bf8
commit
b10a19545b
@ -103,9 +103,8 @@ namespace Catch {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void CumulativeReporterBase::testRunEnded( TestRunStats const& testRunStats ) {
|
void CumulativeReporterBase::testRunEnded( TestRunStats const& testRunStats ) {
|
||||||
auto node = Detail::make_unique<TestRunNode>( testRunStats );
|
m_testRuns.emplace_back( testRunStats );
|
||||||
node->children.swap( m_testGroups );
|
m_testRuns.back().children.swap( m_testGroups );
|
||||||
m_testRuns.push_back( std::move(node) );
|
|
||||||
testRunEndedCumulative();
|
testRunEndedCumulative();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -73,7 +73,7 @@ namespace Catch {
|
|||||||
std::vector<std::shared_ptr<TestCaseNode>> m_testCases;
|
std::vector<std::shared_ptr<TestCaseNode>> m_testCases;
|
||||||
std::vector<std::shared_ptr<TestGroupNode>> m_testGroups;
|
std::vector<std::shared_ptr<TestGroupNode>> m_testGroups;
|
||||||
|
|
||||||
std::vector<Detail::unique_ptr<TestRunNode>> m_testRuns;
|
std::vector<TestRunNode> m_testRuns;
|
||||||
|
|
||||||
std::shared_ptr<SectionNode> m_rootSection;
|
std::shared_ptr<SectionNode> m_rootSection;
|
||||||
SectionNode* m_deepestSection = nullptr;
|
SectionNode* m_deepestSection = nullptr;
|
||||||
|
Loading…
Reference in New Issue
Block a user