Go to the documentation of this file.
48 virtual void execute() = 0;
53 void startItem(
const String& tag,
const String& description =
nullptr);
58 void fail(
const char* func)
override;
67 return groupTimer.elapsedTime();
85 void initialiseAndExecute();
104 State state{State::running};
109 #define startTest(s) startItem(_F(s))
125 #define TEST_CASE_1_ARG(name) startItem(_F(name));
126 #define TEST_CASE_2_ARGS(name, desc) startItem(_F(name), _F(desc));
128 #define GET_3RD_ARG(arg1, arg2, arg3, ...) arg3
129 #define TEST_CASE_ARG_CHOOSER(...) GET_3RD_ARG(__VA_ARGS__, TEST_CASE_2_ARGS, TEST_CASE_1_ARG, )
131 #define TEST_CASE(...) TEST_CASE_ARG_CHOOSER(__VA_ARGS__)(__VA_ARGS__)
TestGroup(const String &name)
Definition: TestGroup.h:37
State
Definition: TestGroup.h:70
Class to simplify generation of begin/end messages for a test group.
Definition: TestGroup.h:34
Template class to implement a polled timer.
Definition: PolledTimer.h:67
The String class.
Definition: WString.h:136
State getState() const
Definition: TestGroup.h:77
const String & getName()
Definition: TestGroup.h:60
void pending()
Call to mark test as pending so it will be executed asynchronously Call complete() when test is finis...
Definition: TestGroup.h:92
@ pending
Definition: Libraries/IOControl/include/IO/Error.h:72
NanoTime::Time< uint32_t > elapsedTime() const
Definition: TestGroup.h:65
Base class supporting verification for test assertions.
Definition: TestBase.h:30