AUnit
1.5.5
Unit testing framework for Arduino platforms inspired by ArduinoUnit and Google Test.
|
27 #include "Verbosity.h"
42 mLifeCycle(kLifeCycleNew),
43 mStatus(kStatusUnknown),
65 while (*p !=
nullptr) {
66 if (
getName().compareTo((*p)->getName()) < 0)
break;
74 const __FlashStringHelper*
const TEST_STRING = F(
"Test ");
81 printer->print(TEST_STRING);
83 printer->println(F(
" passed."));
86 printer->print(TEST_STRING);
88 printer->println(F(
" failed."));
91 printer->print(TEST_STRING);
93 printer->println(F(
" skipped."));
96 printer->print(TEST_STRING);
98 printer->println(F(
" timed out."));
static const uint8_t kTestSkipped
Print test skipped message.
static const uint8_t kStatusFailed
Test has failed, or fail() was called.
static const uint8_t kTestFailed
Print test failed message.
Utility class to hold the Verbosity constants.
void setPassOrFail(bool ok)
Set the status to Passed or Failed depending on ok.
static Print * getPrinter()
Get the output printer used by the various assertion() methods and the TestRunner.
const internal::FCString & getName() const
Get the name of the test.
void resolve()
Print out the summary of the current test.
static const uint8_t kStatusPassed
Test has passed, or pass() was called.
static const uint8_t kTestPassed
Print test passed message.
static const uint8_t kStatusExpired
Test has timed out, or expire() called.
Base class of all test cases.
static const uint8_t kStatusSkipped
Test is skipped through the exclude() method or skip() was called.
static const uint8_t kTestAll
Print all test status messages.
void setStatus(uint8_t status)
Set the status of the test.
bool isVerbosity(uint8_t verbosity) const
Determine if any of the given verbosity is enabled.
static Test ** getRoot()
Get the pointer to the root pointer.
static const uint8_t kTestExpired
Print test timed out message.
void print(Print *printer) const
Convenience method for printing an FCString.