cgreen(5)

cgreen5

A framework for c and c++ unit tests and mocking

Overview

Cgreen is a framework for creating and running compact and easy-to-read unittests for C and/or C++.

Here are some of its features:

•

Fluent API resulting in very readable tests

•

Expressive and clear output using the default reporter

•

Fully functional mocks, both strict and loose

•

Each test runs in its own process for test suite robustness

•

Automatic discovery and running of tests using dynamic library inspection

•

Extensive and expressive constraints for many datatypes

•

BDD-flavoured test declarations with Before and After declarations

•

Extensible reporting mechanism

•

Fully composable test suites

•

An isolated test can be run in a single process for debugging

Releases

Unchanged in 2 releases since Debian 11 (Bullseye).

  1. 11–13

From libcgreen1-dev 1.6.4-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.