AUnit
0.5.2
Unit testing framework for Arduino platforms inspired by ArduinoUnit and Google Test.
|
Various macros (test(), testF(), testing(), testingF(), externTest(), externTestF(), externTesting(), externTestingF()) are defined in this header. More...
#include <stdint.h>
#include <Arduino.h>
#include "Flash.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(testClass, name) |
Create a test that is derived from a custom TestOnce class. More... | |
#define | testingF(testClass, name) |
Create a test that is derived from a custom TestAgain class. More... | |
#define | externTestF(testClass, name) |
Create an extern reference to a testF() test case object defined elsewhere. More... | |
#define | externTestingF(testClass, name) |
Create an extern reference to a testingF() test case object defined elsewhere. More... | |
Various macros (test(), testF(), testing(), testingF(), externTest(), externTestF(), externTesting(), externTestingF()) are defined in this header.
Definition in file TestMacros.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 84 of file TestMacros.h.
#define externTestF | ( | testClass, | |
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 137 of file TestMacros.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 96 of file TestMacros.h.
#define externTestingF | ( | testClass, | |
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 150 of file TestMacros.h.
#define test | ( | name | ) |
Macro to define a test that will be run only once.
Definition at line 56 of file TestMacros.h.
#define testF | ( | testClass, | |
name | |||
) |
Create a test that is derived from a custom TestOnce class.
The name of the instance is prefixed by '{testClass}_' to avoid name collisions with similarly named tests using other fixtures.
Definition at line 107 of file TestMacros.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 70 of file TestMacros.h.
#define testingF | ( | testClass, | |
name | |||
) |
Create a test that is derived from a custom TestAgain class.
The name of the instance is prefixed by '{testClass}_' to avoid name collisions with similarly named tests using other fixtures.
Definition at line 122 of file TestMacros.h.