|
FastLED 3.9.15
|
TAP reporter that outputs TAP-compatible test results Can output to a string buffer or use a print function for streaming output.
#include <fltest.h>
Inheritance diagram for fl::test::TAPReporter:
Collaboration diagram for fl::test::TAPReporter:Public Member Functions | |
| TAPReporter (fl::string *outputBuffer) FL_NOEXCEPT | |
| Create a TAP reporter that writes to the given string buffer. | |
| TAPReporter (SerialPrintFunc printFunc) FL_NOEXCEPT | |
| Create a TAP reporter that uses a print function for streaming output. | |
| void | assertResult (const AssertResult &result) FL_NOEXCEPT override |
| void | setTotalTests (fl::u32 total) FL_NOEXCEPT |
| Set the total number of tests (for TAP plan line) If not set, plan is output at the end instead. | |
| 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 |
Private Member Functions | |
| void | output (const char *line) FL_NOEXCEPT |
Private Attributes | |
| fl::string | mCurrentTestName |
| bool | mCurrentTestPassed |
| fl::vector< fl::string > | mDiagnostics |
| fl::string * | mOutput |
| SerialPrintFunc | mPrintFunc |
| fl::string | mStreamingOutput |
| fl::u32 | mTestNumber |
| fl::u32 | mTotalTests |