CppUTest

Open-source unit testing and mocking framework for C/C++ projects, which provides a clean and intuitive design for both old and new platforms.

  • CppUTest
  • Version :3.8
  • License :BSD License
  • OS :Windows All
  • Publisher :Bas Vodde

Download Now

CppUTest Description

Based on CppUnitLite, CppUTest represents a unit testing and mocking framework. Although it’s written in C++, it can be used not only for C++, but also for C projects.

The tool is designed to facilitate a lightweight, simple and intuitive design, along with compatibility for both old and new platforms (including embedded systems). Made with test-driven development in mind, it utilizes just the necessary and suffice C++ features to help you with your work.

Aside from the source code, the downloaded package includes examples, tests and user documentation, together with a manual on how to install and deploy the framework on all supported platforms. Former CppTestTools users have to make a few changes to the code to convert it into CppUTest.

Common test macros can be created for defining a test – TEST(group, name), turning off a test’s execution – IGNORE_TEST(group, name), declaring a test group to which other tests belong to and creating the link required from another library – TEST_GROUP(group), defining a test with a base class different than Utest – TEST_GROUP_BASE(group, base), as well as for exporting a test group’s name to link it from another library – IMPORT_TEST_GROUP(group).

There are also source and pre-packaged editions available for Linux (Debian and Ubuntu) and Mac OS X (Homebrew).

Leave a Reply

Your email address will not be published.