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
Categories
LibrariesLicense
Apache License V2.0Follow Cmockery
You Might Also Like
Gen AI apps are built with MongoDB Atlas
MongoDB Atlas provides built-in vector search and a flexible document model so developers can build, scale, and run gen AI apps without stitching together multiple databases. From LLM integration to semantic search, Atlas simplifies your AI architecture—and it’s free to get started.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of Cmockery!