UTPP
Loading...
Searching...
No Matches
Test Definition Macros
#define SUITE(Name)
 Declares the beginning of a new test suite.
 
#define TEST(Name)
 Defines a test case This macro must be followed by a code block containing the test.
 
#define TEST_FIXTURE(Fixture, Name)
 Defines a test case with an associated fixture.
 
#define ABORT(value)
 Abort current test if value is true. Abort message is the value itself.
 
#define ABORT_EX(value, ...)
 Abort current test if value is true. Outputs the given message.
 

Detailed Description

Macro Definition Documentation

◆ SUITE

#define SUITE ( Name)

Declares the beginning of a new test suite.

A test suite is a collection of test cases. You can control the execution of a test suite using the UnitTest::EnableSuite() and UnitTest::DisableSuite() functions.

To execute a specific suite use the UnitTest::RunSuite() function.

◆ TEST_FIXTURE

#define TEST_FIXTURE ( Fixture,
Name )

Defines a test case with an associated fixture.

A fixture can be any class or structure that has a default constructor. The fixture is initialized prior to running the test and teared down at the end of the test.

This macro must be followed by a code block containing the test.