FastLED 3.9.15
Loading...
Searching...
No Matches
fl::test::XMLReporter Class Reference

Detailed Description

XML reporter that outputs JUnit-compatible XML format The output is accumulated in a string buffer provided by the user.

Definition at line 556 of file fltest.h.

#include <fltest.h>

+ Inheritance diagram for fl::test::XMLReporter:
+ Collaboration diagram for fl::test::XMLReporter:

Public Member Functions

 XMLReporter (fl::string *outputBuffer, const char *suiteName="fltest") FL_NOEXCEPT
 Create an XML reporter that writes to the given string buffer.
 
void assertResult (const AssertResult &result) FL_NOEXCEPT override
 
void setSuiteName (const char *name) FL_NOEXCEPT
 Set the test suite name (used in XML output)
 
void subcaseEnd () FL_NOEXCEPT override
 
void subcaseStart (const char *name) FL_NOEXCEPT override
 
void testCaseEnd (bool passed, fl::u32 durationMs=0) FL_NOEXCEPT override
 Called when a test case ends.
 
void testCaseStart (const char *name) FL_NOEXCEPT override
 
void testRunEnd (const TestStats &stats) FL_NOEXCEPT override
 
void testRunStart () FL_NOEXCEPT override
 
- Public Member Functions inherited from fl::test::IReporter
virtual ~IReporter () FL_NOEXCEPT=default
 

Static Private Member Functions

static fl::string escapeXml (const char *text) FL_NOEXCEPT
 

Private Attributes

fl::string mCurrentTestFailures
 
fl::string mCurrentTestName
 
bool mCurrentTestPassed = true
 
fl::stringmOutput
 
const char * mSuiteName
 
fl::vector< fl::stringmTestCaseResults
 

The documentation for this class was generated from the following files: