#include <ArduinoUnit.h>
Public Member Functions | |
TestOnce (const __FlashStringHelper *name) | |
TestOnce (const char *name) | |
void | loop () |
virtual void | once ()=0 |
![]() | |
void | pass () |
void | fail () |
void | skip () |
virtual void | setup () |
Test (const __FlashStringHelper *_name, uint8_t _verbosity=TEST_VERBOSITY_TESTS_ALL|TEST_VERBOSITY_ASSERTIONS_FAILED) | |
Test (const char *_name, uint8_t _verbosity=TEST_VERBOSITY_TESTS_ALL|TEST_VERBOSITY_ASSERTIONS_FAILED) | |
Additional Inherited Members | |
![]() | |
static uint16_t | getCurrentPassed () |
static uint16_t | getCurrentSkipped () |
static uint16_t | getCurrentFailed () |
static uint16_t | getCurrentCount () |
static void | include (const char *pattern) |
static void | exclude (const char *pattern) |
static void | run () |
template<typename T > | |
static bool | assertion (const __FlashStringHelper *file, uint16_t line, const __FlashStringHelper *lhss, const T &lhs, const __FlashStringHelper *ops, bool(*op)(const T &lhs, const T &rhs), const __FlashStringHelper *rhss, const T &rhs) |
![]() | |
uint8_t | state |
String | name |
uint8_t | verbosity |
![]() | |
static uint8_t | max_verbosity = TEST_VERBOSITY_ALL |
static uint8_t | min_verbosity = TEST_VERBOSITY_TESTS_SUMMARY |
static const uint8_t | UNSETUP = 0 |
static const uint8_t | LOOPING = 1 |
static const uint8_t | DONE_SKIP = 2 |
static const uint8_t | DONE_PASS = 3 |
static const uint8_t | DONE_FAIL = 4 |
static Print * | out = &Serial |
static Test * | current = 0 |
Class for creating a once-only test. Test::run() on such a test calls Test::setup() once, and (if not already resolved from the setup(), calls Test::once()
|
virtual |
Run a test. Test::loop() will be called on each Test::run() until a pass(), fail() or skip().
Implements Test.