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

◆ testRunEnd()

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

Implements fl::test::IReporter.

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

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

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

+ Here is the call graph for this function: