cmockery
« Back to VersTracker
Description:
Unit testing and mocking library for C
Type: Formula  |  Latest Version: 0.1.2@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: testing c mocking development unittesting
Install: brew install cmockery
About:
Cmockery is a lightweight unit testing and mocking library for C applications. It provides a simple framework for creating test cases and mock functions, helping developers isolate components and verify behavior. The library is designed to be portable and easy to integrate into existing C projects.
Key Features:
  • Simple C-based test framework
  • Mock function creation and verification
  • Lightweight and portable
  • Support for setup and teardown functions
Use Cases:
  • Unit testing C applications
  • Mocking external dependencies for isolated testing
Alternatives:
  • GoogleTest – More feature-rich C++ framework with C support, but heavier dependency
  • Check – Mature C testing framework with similar scope but different API
License: BSD-3-Clause AND Apache-2.0
Bottles available for: arm64_sequoia, arm64_sonoma, arm64_ventura, arm64_monterey, sonoma, ventura, monterey, arm64_linux, x86_64_linux
Version History
Detected Version Rev Change Commit
Oct 15, 2025 5:02pm 0 VERSION_BUMP f88561ee
Sep 14, 2024 8:01pm 0 VERSION_BUMP 004751da