This user guide describes CxxTest 4.4, a unit testing framework for C++ that supports test discovery and does not require advanced features like RTTI.
CxxTest is a unit testing framework for C++ designed to be portable and easy to use without requiring precompiling a library or advanced C++ features such as RTTI. It supports flexible test discovery by parsing header files to automatically generate a test runner, making it suitable for embedded systems and standard compilers alike.
The guide covers the four-step testing process: defining tests in header files, using the cxxtestgen command to generate runners, compiling, and executing tests. It details supported test assertions (e.g., TS_ASSERT_EQUALS), advanced features like mocking objects and value traits, and instructions for integrating with various build environments including SCons, Makefiles, and Microsoft Visual Studio.
| License Type | GNU Lesser General Public license |
|---|---|
| Required C++ Features | Does not require RTTI, Member template functions, Exception handling, or External libraries |
CxxTest is a unit testing framework for C++ that is similar in spirit to JUnit, CppUnit, and xUnit.
It supports flexible test discovery by parsing header files to automatically generate a test runner, so users do not need to register tests.
It processes one or more C++ header files to perform test discovery and creates files for the CxxTest test runner.