AUnit
0.4.1
Unit testing framework for Arduino platforms inspired by ArduinoUnit and Google Test.
|
Various macros (test(), testing(), externTest(), externTesting()) are defined in this header. More...
#include <stdint.h>
#include <Arduino.h>
#include "FCString.h"
#include "TestOnce.h"
#include "TestAgain.h"
Go to the source code of this file.
Macros | |
#define | test(name) |
Macro to define a test that will be run only once. More... | |
#define | testing(name) |
Macro to define a test that will run repeatly upon each iteration of the global loop() method, stopping when the something calls Test::pass(), Test::fail() or Test::skip(). More... | |
#define | externTest(name) |
Create an extern reference to a test() test case object defined elsewhere. More... | |
#define | externTesting(name) |
Create an extern reference to a testing() test case object defined elsewhere. More... | |
#define | testF(test_class, name) |
Create a test that is derived from a custom TestOnce class. More... | |
#define | testingF(test_class, name) |
Create a test that is derived from a custom TestAgain class. More... | |
#define | externTestF(test_class, name) |
Create an extern reference to a testF() test case object defined elsewhere. More... | |
#define | externTestingF(test_class, name) |
Create an extern reference to a testingF() test case object defined elsewhere. More... | |
Various macros (test(), testing(), externTest(), externTesting()) are defined in this header.
Definition in file TestMacro.h.
#define externTest | ( | name | ) |
Create an extern reference to a test() test case object defined elsewhere.
This is only necessary if you use assertTestXxx() or checkTestXxx() when the test is in another file (or defined after the assertion on it).
Definition at line 78 of file TestMacro.h.
#define externTestF | ( | test_class, | |
name | |||
) |
Create an extern reference to a testF() test case object defined elsewhere.
This is only necessary if you use assertTestXxx() or checkTestXxx() when the test is in another file (or defined after the assertion on it).
Definition at line 131 of file TestMacro.h.
#define externTesting | ( | name | ) |
Create an extern reference to a testing() test case object defined elsewhere.
This is only necessary if you use assertTestXxx() or checkTestXxx() when the test is in another file (or defined after the assertion on it).
Definition at line 90 of file TestMacro.h.
#define externTestingF | ( | test_class, | |
name | |||
) |
Create an extern reference to a testingF() test case object defined elsewhere.
This is only necessary if you use assertTestXxx() or checkTestXxx() when the test is in another file (or defined after the assertion on it).
Definition at line 144 of file TestMacro.h.
#define test | ( | name | ) |
Macro to define a test that will be run only once.
Definition at line 50 of file TestMacro.h.
#define testF | ( | test_class, | |
name | |||
) |
Create a test that is derived from a custom TestOnce class.
The name of the instance is prefixed by '{test_class}_' to avoid name collisions with similarly named tests using other fixtures.
Definition at line 101 of file TestMacro.h.
#define testing | ( | name | ) |
Macro to define a test that will run repeatly upon each iteration of the global loop() method, stopping when the something calls Test::pass(), Test::fail() or Test::skip().
Definition at line 64 of file TestMacro.h.
#define testingF | ( | test_class, | |
name | |||
) |
Create a test that is derived from a custom TestAgain class.
The name of the instance is prefixed by '{test_class}_' to avoid name collisions with similarly named tests using other fixtures.
Definition at line 116 of file TestMacro.h.