RobotTestingFramework
2.0.1
Robot Testing Framework
|
#include <robottestingframework/Asserter.h>
Go to the source code of this file.
Macros | |
#define | ROBOTTESTINGFRAMEWORK_COMPILER_MESSAGE(x) |
#define | ROBOTTESTINGFRAMEWORK_COMPILER_WARNING(x) |
#define | ROBOTTESTINGFRAMEWORK_COMPILER_ERROR(x) |
#define | ROBOTTESTINGFRAMEWORK_ASSERT_FAIL(message) |
Assertion with throwing failure exception. More... | |
#define | ROBOTTESTINGFRAMEWORK_ASSERT_FAIL_IF_TRUE(condition, message) |
Conditional assertion with throwing failure exception. More... | |
#define | ROBOTTESTINGFRAMEWORK_ASSERT_FAIL_IF_FALSE(condition, message) |
Conditional assertion with throwing failure exception. More... | |
#define | ROBOTTESTINGFRAMEWORK_ASSERT_ERROR(message) |
Assertion with throwing error exception. More... | |
#define | ROBOTTESTINGFRAMEWORK_ASSERT_ERROR_IF_TRUE(condition, message) |
Conditional assertion with throwing error exception. More... | |
#define | ROBOTTESTINGFRAMEWORK_ASSERT_ERROR_IF_FALSE(condition, message) |
Conditional assertion with throwing error exception. More... | |
#define | ROBOTTESTINGFRAMEWORK_TEST_REPORT(message) |
Reporting a message to the TestResult. More... | |
#define | ROBOTTESTINGFRAMEWORK_TEST_FAIL_IF_FALSE(condition, message) |
Conditional failure report. More... | |
#define | ROBOTTESTINGFRAMEWORK_TEST_FAIL_IF_TRUE(condition, message) |
Conditional failure report. More... | |
#define | ROBOTTESTINGFRAMEWORK_TEST_CHECK(condition, message) |
ROBOTTESTINGFRAMEWORK_TEST_CHECK combines ROBOTTESTINGFRAMEWORK_TEST_REPORT and ROBOTTESTINGFRAMEWORK_TEST_FAIL_IF. More... | |
#define ROBOTTESTINGFRAMEWORK_ASSERT_ERROR | ( | message | ) |
Assertion with throwing error exception.
message | Message to be reported as the detail of TestMessage |
Definition at line 90 of file TestAssert.h.
#define ROBOTTESTINGFRAMEWORK_ASSERT_ERROR_IF_FALSE | ( | condition, | |
message | |||
) |
Conditional assertion with throwing error exception.
message | Message to be reported as the detail of TestMessage |
condition | If this condition evaluates to false then the test failed. |
Definition at line 115 of file TestAssert.h.
#define ROBOTTESTINGFRAMEWORK_ASSERT_ERROR_IF_TRUE | ( | condition, | |
message | |||
) |
Conditional assertion with throwing error exception.
message | Message to be reported as the detail of TestMessage |
condition | If this condition evaluates to true then the test failed. |
Definition at line 102 of file TestAssert.h.
#define ROBOTTESTINGFRAMEWORK_ASSERT_FAIL | ( | message | ) |
Assertion with throwing failure exception.
message | Message to be reported as the detail of TestMessage |
Definition at line 54 of file TestAssert.h.
#define ROBOTTESTINGFRAMEWORK_ASSERT_FAIL_IF_FALSE | ( | condition, | |
message | |||
) |
Conditional assertion with throwing failure exception.
message | Message to be reported as the detail of TestMessage |
condition | If this condition evaluates to false then the test failed. |
Definition at line 79 of file TestAssert.h.
#define ROBOTTESTINGFRAMEWORK_ASSERT_FAIL_IF_TRUE | ( | condition, | |
message | |||
) |
Conditional assertion with throwing failure exception.
message | Message to be reported as the detail of TestMessage |
condition | If this condition evaluates to true then the test failed. |
Definition at line 66 of file TestAssert.h.
#define ROBOTTESTINGFRAMEWORK_COMPILER_ERROR | ( | x | ) |
Definition at line 43 of file TestAssert.h.
#define ROBOTTESTINGFRAMEWORK_COMPILER_MESSAGE | ( | x | ) |
Definition at line 41 of file TestAssert.h.
#define ROBOTTESTINGFRAMEWORK_COMPILER_WARNING | ( | x | ) |
Definition at line 42 of file TestAssert.h.
#define ROBOTTESTINGFRAMEWORK_TEST_CHECK | ( | condition, | |
message | |||
) |
ROBOTTESTINGFRAMEWORK_TEST_CHECK combines ROBOTTESTINGFRAMEWORK_TEST_REPORT and ROBOTTESTINGFRAMEWORK_TEST_FAIL_IF.
It does not throw any exception. It always reports the message (comment) and marks the current check as [PASSED] or [FAILED] respectively if the conditoin evalutes to true
or false
.
message | Message to be reported as the comment for the current check |
condition | If this condition evaluates to false then the test failed. |
Definition at line 188 of file TestAssert.h.
#define ROBOTTESTINGFRAMEWORK_TEST_FAIL_IF_FALSE | ( | condition, | |
message | |||
) |
Conditional failure report.
ROBOTTESTINGFRAMEWORK_TEST_FAIL_IF_FALSE does not throw any exception. It reports a failure message to the TestResult indiecating that the check on the corresponding condition evaluates to false
.
message | Message to be reported as the detail of TestMessage |
condition | If this condition evaluates to false then the test failed. |
Definition at line 149 of file TestAssert.h.
#define ROBOTTESTINGFRAMEWORK_TEST_FAIL_IF_TRUE | ( | condition, | |
message | |||
) |
Conditional failure report.
ROBOTTESTINGFRAMEWORK_TEST_FAIL_IF_TRUE does not throw any exception. It reports a failure message to the TestResult indiecating that the check on the corresponding condition evaluates to true
.
message | Message to be reported as the detail of TestMessage |
condition | If this condition evaluates to true then the test failed. |
Definition at line 168 of file TestAssert.h.
#define ROBOTTESTINGFRAMEWORK_TEST_REPORT | ( | message | ) |
Reporting a message to the TestResult.
ROBOTTESTINGFRAMEWORK_TEST_REPORT does not throw any exception. It can be used to report any arbitrary message to the TestResult.
message | Message to be reported as the detail of TestMessage |
Definition at line 131 of file TestAssert.h.