kaycxx-test
C++ unit test framework
Loading...
Searching...
No Matches
Macros
suite.hpp File Reference

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>
Include dependency graph for suite.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define suite(description)   KAYCXX_TEST_SUITE(description, __COUNTER__)
 Defines a top-level test suite.
 

Detailed Description

Defines the suite macro for top-level test suite registration.

Macro Definition Documentation

◆ suite

#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().

Parameters
descriptionHuman-readable suite description.