FastLED 3.9.15
Loading...
Searching...
No Matches

◆ printSummary()

void DriverTestRunner::printSummary ( )
inline

Print final test summary with pass/fail status.

Definition at line 81 of file TestRunner.h.

81 {
82 fl::sstream ss;
83 ss << BOX_TOP;
84 if (mAllTestsPassed) {
85 ss << "| ALL TESTS PASSED |\n";
86 } else {
87 ss << "| SOME TESTS FAILED |\n";
88 }
89 ss << BOX_MID;
90 ss << "| Platform: " << getPlatformName() << "\n";
91 ss << "| Tests: " << mPassedTests << "/" << mTotalTests << " passed\n";
92 ss << BOX_BOTTOM;
93 Serial.print(ss.str().c_str());
94
95 // Machine-readable output for automated testing
96 if (mAllTestsPassed) {
97 Serial.println("\nTEST_SUITE_COMPLETE: PASS");
98 } else {
99 Serial.println("\nTEST_SUITE_COMPLETE: FAIL");
100 }
101 }
const char * getPlatformName()
Get a human-readable name for the current platform.
#define BOX_TOP
Definition TestRunner.h:27
#define BOX_MID
Definition TestRunner.h:28
#define BOX_BOTTOM
Definition TestRunner.h:29
const char * c_str() const FL_NOEXCEPT
string str() const FL_NOEXCEPT
Definition strstream.h:43
#define Serial
Definition serial.h:304

References BOX_BOTTOM, BOX_MID, BOX_TOP, fl::basic_string::c_str(), getPlatformName(), mAllTestsPassed, mPassedTests, mTotalTests, Serial, and fl::sstream::str().

Referenced by setup().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: