catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
XmlReporter: add information about rng-seed
- Commit
9f8b848fe59ff9ec46093f87842a9413bce4ee92- Author
- Jozef Grajciar ·
- Committer
- Martin Hořeňovský
- Parents
aaaac35d9282
Changes
include/reporters/catch_reporter_xml.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/reporters/catch_reporter_xml.cpp b/include/reporters/catch_reporter_xml.cpp index c3200537..902014cf 100644 --- a/include/reporters/catch_reporter_xml.cpp +++ b/include/reporters/catch_reporter_xml.cpp @@ -55,6 +55,9 @@ namespace Catch { m_xml.startElement( "Catch" ); if( !m_config->name().empty() ) m_xml.writeAttribute( "name", m_config->name() ); + if( m_config->rngSeed() != 0 ) + m_xml.scopedElement( "Randomness" ) + .writeAttribute( "seed", m_config->rngSeed() ); } void XmlReporter::testGroupStarting( GroupInfo const& groupInfo ) {