Cmockery is a lightweight unit testing framework for the C programming language, designed to make writing and executing C tests simple and portable. It allows developers to test the logic of C modules in isolation by replacing external dependencies with mock functions. Cmockery focuses on testing functionality rather than environment-specific behavior, making it ideal for projects where code must run on diverse or constrained systems. Unlike many modern frameworks, Cmockery is compatible with older compilers and avoids dependencies on newer C language features, making it suitable for legacy codebases or embedded development.

Features

  • Lightweight and portable testing framework for C
  • Supports mocking external symbols to isolate units under test
  • Produces standalone test executables for easy execution
  • Compatible with older C compilers, ensuring wide portability
  • Requires linking only with the standard C library, minimizing dependency issues
  • Provides detailed documentation and examples for quick setup

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

Apache License V2.0

Follow Cmockery

Cmockery Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Cmockery!

Additional Project Details

Operating Systems

Linux, Windows

Programming Language

C, Unix Shell

Related Categories

Unix Shell Libraries, C Libraries

Registered

2025-10-11