micro-test-plus 5.0.1
µTest++ Testing Framework
Loading...
Searching...
No Matches
micro-test-plus.h File Reference

Main C++ header with the declarations for the µTest++ Testing Framework. More...

Go to the source code of this file.

Macros

#define MICRO_OS_PLUS_MICRO_TEST_PLUS_ENABLED
 Enables the µTest++ Testing Framework.
#define MICRO_OS_PLUS_MICRO_TEST_PLUS_TRACE_CONSTRUCTORS_ENABLED
 Enable trace in constructors and destructors in µTest++.
#define MICRO_OS_PLUS_MICRO_TEST_PLUS_TRACE_ENABLED
 Enable trace in class methods in µTest++.

Detailed Description

This header serves as the principal entry point for the µTest++ testing framework, purpose-built for both embedded and general C++ projects.

It provides all essential declarations required to write and manage tests, including test runner and reporter objects, test suite and test case management, expectations, assumptions, comparators, logical operators, exception verification, and utility functions.

The header also incorporates all necessary dependencies and internal headers to ensure the framework operates correctly and efficiently.

All public API definitions reside within the micro_os_plus::micro_test_plus namespace and its nested namespaces, ensuring clear separation from user code and minimising the risk of naming conflicts.

This file is located in the top-level include/micro-os-plus directory; all other header files are organised within the include/micro-os-plus/micro-test-plus directory to maintain a structured and modular codebase.

To access the complete functionality of the µTest++ framework, users should include this header in their test projects.

The implementation is significantly inspired by Boost UT, with adaptations and extensions to address the requirements of embedded development and the µTest++ framework.

Definition in file micro-test-plus.h.