mirror of
https://github.com/catchorg/Catch2.git
synced 2024-12-26 12:43:31 +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 ) {
|
||||
auto node = Detail::make_unique<TestRunNode>( testRunStats );
|
||||
node->children.swap( m_testGroups );
|
||||
m_testRuns.push_back( std::move(node) );
|
||||
m_testRuns.emplace_back( testRunStats );
|
||||
m_testRuns.back().children.swap( m_testGroups );
|
||||
testRunEndedCumulative();
|
||||
}
|
||||
|
||||
|
@ -73,7 +73,7 @@ namespace Catch {
|
||||
std::vector<std::shared_ptr<TestCaseNode>> m_testCases;
|
||||
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;
|
||||
SectionNode* m_deepestSection = nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user