|
kaycxx-test
C++ unit test framework
|
Defines the suite macro for top-level test suite registration. More...
#include <source_location>#include <string_view>#include <kaycxx/test/callback.hpp>#include <kaycxx/test/describe.hpp>

Go to the source code of this file.
Macros | |
| #define | suite(description) KAYCXX_TEST_SUITE(description, __COUNTER__) |
| Defines a top-level test suite. | |
Defines the suite macro for top-level test suite registration.
| #define suite | ( | description | ) | KAYCXX_TEST_SUITE(description, __COUNTER__) |
Defines a top-level test suite.
The macro creates a namespace-scope registration function and object so suites can be declared outside functions. The following block is executed immediately during static registration and adds child suites, tests, and hooks to the top-level suite. Nested suites should be declared with describe().
| description | Human-readable suite description. |