CMock - Mock/stub generator for C
Go to file
Mark VanderVoord dcde998087 cleanup style
2021-01-16 22:20:16 -05:00
.github/workflows when we checkout the project, do it recursively so we get unity for our tests. :) 2021-01-16 21:33:19 -05:00
config Update coding style to match our own official coding guidelines 2020-03-18 19:16:58 -04:00
docs add StopIgnore to new plugin 2020-08-19 11:25:27 +02:00
examples Further cleanup based on server results 2020-03-19 11:29:17 -04:00
lib cleanup style 2021-01-16 22:20:16 -05:00
scripts No need to freeze immutable objects 2020-03-19 11:35:22 -04:00
src Merge pull request #311 from andred/master 2021-01-07 18:02:24 -05:00
test Show the correct badge for this project. 2021-01-16 22:15:36 -05:00
vendor Latest Unity 2020-05-03 16:13:52 -04:00
.gitattributes - Added a couple more tests to our details test 2015-12-30 16:33:33 -05:00
.gitignore Need project present before running bundler. 2021-01-16 21:21:51 -05:00
.gitmodules Updated to latest version of Unity. 2014-07-25 15:13:29 -04:00
Gemfile update gem file to drop old requirements 2020-03-19 10:27:51 -04:00
LICENSE.txt Move license for GitHub detection 2018-11-13 21:11:15 -05:00
meson.build Update meson.build 2020-08-06 12:39:56 -07:00
README.md Show the correct badge for this project. 2021-01-16 22:15:36 -05:00

CMock CI

CMock is a mock and stub generator and runtime for unit testing C. It's been designed to work smoothly with Unity Test, another of the embedded-software testing tools developed by ThrowTheSwitch.org. CMock automagically parses your C headers and creates useful and usable mock interfaces for unit testing. Give it a try!

If you don't care to manage unit testing builds yourself, consider checking out Ceedling, a test-centered build manager for unit testing C code.

Getting Started

If you're using Ceedling, there is no need to install CMock. It will handle it for you. For everyone else, the simplest way is to grab it off github. You can also download it as a zip if you prefer. The Github method looks something like this:

> git clone --recursive https://github.com/throwtheswitch/cmock.git
> cd cmock
> bundle install # Ensures you have all RubyGems needed

If you plan to help with the development of CMock (or just want to verify that it can perform its self tests on your system) then you can enter the test directory and then ask it to test:

> cd test
> rake # Run all CMock self tests

API Documentation