cunit
« Back to VersTracker
Description:
Lightweight unit testing framework for C
Type: Formula  |  Latest Version: 2.1-3@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: testing c unit-testing development framework
Install: brew install cunit
About:
CUnit is a lightweight system for writing, administering, and running unit tests in the C programming language. It provides a simple framework for test management, with a basic collection of assertions for verifying test outcomes. Its primary value is offering a straightforward, automated way to validate the correctness of C code during development.
Key Features:
  • Simple framework for test registration and execution
  • Basic assertion library for test validation
  • Support for both automated and interactive test running
  • Test management via suites and cases
Use Cases:
  • Automated regression testing for C libraries and applications
  • Verifying individual function logic and behavior in isolation
  • Continuous integration (CI) pipelines for C projects
Alternatives:
  • Check – More feature-rich with support for test fixtures and parallel execution, but has more complex setup.
  • Google Test (gtest) – C++ framework that can be used for C, offering richer assertions and modern features but with C++ dependencies.
License: LGPL-2.0-or-later
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
Sep 10, 2025 11:08pm 0 VERSION_BUMP 834c903e