CxxTest 4.4 User Guide

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 4.4 User Guide - cover page
Brand
CxxTest
Category
Other software
Document type
User Manual
Language
English
Pages
45
File format
PDF
File size
265 KB
Published
18 October, 2026
Updated
18 October, 2026
MD5 checksum
CD84B32CAC0BDD587879A36A6025A075

About this manual

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.

What's inside

  • Overview
  • Getting Started
  • Test Assertions
  • The CxxTestGen Command
  • Test Runner Syntax
  • Advanced Testing Features
  • Value Traits
  • Testing with Mock Objects
  • Installation

Specifications

License TypeGNU Lesser General Public license
Required C++ FeaturesDoes not require RTTI, Member template functions, Exception handling, or External libraries

Frequently asked questions

What is CxxTest?

CxxTest is a unit testing framework for C++ that is similar in spirit to JUnit, CppUnit, and xUnit.

How does CxxTest handle test registration?

It supports flexible test discovery by parsing header files to automatically generate a test runner, so users do not need to register tests.

What does the cxxtestgen command do?

It processes one or more C++ header files to perform test discovery and creates files for the CxxTest test runner.

Download PDF (265 KB)