16#pragma warning(disable:4061)
24 m_xml(_config.stream())
33 return "Reports test results as an XML document";
53 if( !stylesheetRef.empty() )
58 if (
m_config->testSpec().hasFilters())
81 m_testCaseTimer.
start();
87 if( m_sectionDepth++ > 0 ) {
101 bool includeResults =
m_config->includeSuccessfulResults() || !result.isOk();
122 if( result.hasExpression() ) {
132 .
writeText( result.getExpandedExpression() );
136 switch( result.getResultType() ) {
166 if( result.hasExpression() )
174 if( --m_sectionDepth > 0 ) {
195 if( !testCaseStats.
stdOut.empty() )
197 if( !testCaseStats.
stdErr.empty() )
#define CATCH_REGISTER_REPORTER(name, reporterType)
auto getElapsedSeconds() const -> double
void sectionStarting(SectionInfo const §ionInfo) override
bool assertionEnded(AssertionStats const &assertionStats) override
void testCaseStarting(TestCaseInfo const &testInfo) override
void writeSourceInfo(SourceLineInfo const &sourceInfo)
void testRunEnded(TestRunStats const &testRunStats) override
void assertionStarting(AssertionInfo const &) override
void noMatchingTestCases(std::string const &s) override
void sectionEnded(SectionStats const §ionStats) override
void testGroupStarting(GroupInfo const &groupInfo) override
XmlReporter(ReporterConfig const &_config)
void testRunStarting(TestRunInfo const &testInfo) override
void testCaseEnded(TestCaseStats const &testCaseStats) override
static std::string getDescription()
void testGroupEnded(TestGroupStats const &testGroupStats) override
virtual std::string getStylesheetRef() const
ScopedElement & writeText(std::string const &text, bool indent=true)
ScopedElement & writeAttribute(std::string const &name, T const &attribute)
ScopedElement scopedElement(std::string const &name)
XmlWriter & writeText(std::string const &text, bool indent=true)
XmlWriter & startElement(std::string const &name)
void writeStylesheetRef(std::string const &url)
XmlWriter & writeAttribute(std::string const &name, std::string const &attribute)
std::string trim(std::string const &str)
std::string serializeFilters(std::vector< std::string > const &container)
std::vector< MessageInfo > infoMessages
AssertionResult assertionResult
bool shouldReportAllAssertions
bool shouldRedirectStdOut
void sectionStarting(SectionInfo const &_sectionInfo) override
void noMatchingTestCases(std::string const &) override
void testRunStarting(TestRunInfo const &_testRunInfo) override
void testGroupStarting(GroupInfo const &_groupInfo) override
void testRunEnded(TestRunStats const &) override
ReporterPreferences m_reporterPrefs
void sectionEnded(SectionStats const &) override
void testCaseStarting(TestCaseInfo const &_testInfo) override
void testCaseEnded(TestCaseStats const &) override
void testGroupEnded(TestGroupStats const &) override
std::string tagsAsString() const