FastLED 3.10.6
Loading...
Searching...
No Matches

◆ testRunEnd()

void fl::test::TAPReporter::testRunEnd ( const TestStats & stats)
overridevirtual

Implements fl::test::IReporter.

Definition at line 869 of file fltest.cpp.hpp.

869 {
870 // If we didn't know the total, output the plan at the end
871 if (mTotalTests == 0) {
872 fl::sstream ss;
873 ss << "1.." << stats.mTestCasesRun;
874 output(ss.str().c_str());
875 }
876
877 // Output summary as diagnostics
878 fl::sstream ss;
879 ss << "# Tests: " << stats.mTestCasesRun
880 << ", Passed: " << stats.mTestCasesPassed
881 << ", Failed: " << stats.mTestCasesFailed;
882 if (stats.mTestCasesSkipped > 0) {
883 ss << ", Skipped: " << stats.mTestCasesSkipped;
884 }
885 output(ss.str().c_str());
886
887 // Copy to output buffer if using buffer mode
888 if (mOutput) {
890 }
891}
const char * c_str() const FL_NO_EXCEPT
string str() const FL_NO_EXCEPT
Definition strstream.h:43
void output(const char *line) FL_NO_EXCEPT
fl::string * mOutput
Definition fltest.h:670
fl::string mStreamingOutput
Definition fltest.h:679

References fl::basic_string::c_str(), fl::FL_NO_EXCEPT, mOutput, mStreamingOutput, mTotalTests, output(), and fl::sstream::str().

+ Here is the call graph for this function: