cppunit
« Back to VersTracker
Description:
Unit testing framework for C++
Type: Formula  |  Latest Version: 1.15.1@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: testing c++ unit-testing framework development
Install: brew install cppunit
About:
CppUnit is a C++ port of the JUnit framework, providing a robust platform for writing and executing unit tests. It helps developers ensure code correctness by isolating and testing individual components. The framework integrates smoothly into build systems and supports various output formats for test results.
Key Features:
  • JUnit-inspired API for familiar testing patterns
  • Supports multiple test runners (text, GUI, XML)
  • Macros for easy test case and suite creation
  • Platform-independent design
Use Cases:
  • Automated regression testing for C++ applications
  • Test-driven development (TDD) workflows
  • Continuous integration pipelines for C++ projects
Alternatives:
  • Google Test (gtest) – More modern and actively maintained, with richer features like mock support
  • Catch2 – Header-only framework using modern C++, known for expressive syntax
License: LGPL-2.1-only
Bottles available for: arm64_tahoe, arm64_sequoia, arm64_sonoma, arm64_ventura, arm64_monterey, arm64_big_sur, sonoma, ventura, monterey, big_sur, catalina, arm64_linux, x86_64_linux
Version History
Detected Version Rev Change Commit