28 #include <avr/pgmspace.h> 32 #include "Verbosity.h" 39 static const char TEST_STRING[] PROGMEM =
"Test ";
40 static const __FlashStringHelper* TEST_STRING_F = FPSTR(TEST_STRING);
72 while (*p !=
nullptr) {
73 if (compareString(
getName(), (*p)->getName()) < 0)
break;
86 printer->print(TEST_STRING_F);
88 printer->println(F(
" passed."));
91 printer->print(TEST_STRING_F);
93 printer->println(F(
" failed."));
96 printer->print(TEST_STRING_F);
98 printer->println(F(
" skipped."));
101 printer->print(TEST_STRING_F);
103 printer->println(F(
" timed out."));
Base class of all test cases.
static const uint8_t kTestExpired
Print test timed out message.
static const uint8_t kStatusFailed
Test has failed, or failed() was called.
static void print(const FCString &s)
Convenience method for printing an FCString.
Utility class to hold the Verbosity constants.
void setPassOrFail(bool ok)
Set the status to Passed or Failed depending on ok.
void resolve()
Print out the summary of the current test.
static const uint8_t kTestPassed
Print test passed message.
static const uint8_t kStatusPassed
Test has passed, or pass() was called.
static const uint8_t kStatusSkipped
Test is skipped, through the exclude() method or skip() was called.
static Test ** getRoot()
Get the pointer to the root pointer.
bool isVerbosity(uint8_t verbosity)
Determine if any of the given verbosity is enabled.
static Print * getPrinter()
Get the output printer used by the various assertion() methods and the TestRunner.
static const uint8_t kStatusExpired
Test has timed out, or expire() called.
static const uint8_t kTestSkipped
Print test skipped message.
const FCString & getName()
Get the name of the test.
static const uint8_t kTestAll
Print all test status messages.
static const uint8_t kTestFailed
Print test failed message.