Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ThrowTheSwitch/CMock
CMock - Mock/stub generator for C
https://github.com/ThrowTheSwitch/CMock
Last synced: 18 days ago
JSON representation
CMock - Mock/stub generator for C
- Host: GitHub
- URL: https://github.com/ThrowTheSwitch/CMock
- Owner: ThrowTheSwitch
- License: mit
- Created: 2012-01-26T19:51:32.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2024-10-23T20:01:49.000Z (21 days ago)
- Last Synced: 2024-10-24T06:24:58.172Z (21 days ago)
- Language: C
- Homepage: http://throwtheswitch.org
- Size: 3.67 MB
- Stars: 676
- Watchers: 52
- Forks: 273
- Open Issues: 90
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
CMock ![CI](https://github.com/ThrowTheSwitch/CMock/workflows/CI/badge.svg)
=====
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 neededIf 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 testsAPI Documentation
=================* Not sure what you're doing?
* [View docs/CMock_Summary.md](docs/CMock_Summary.md)
* Interested in our MIT-style license?
* [View docs/license.txt](LICENSE.txt)
* Are there examples?
* They are all in [/examples](examples/)
* Any other resources to check out?
* Definitely! Check out our developer portal on [ThrowTheSwitch.org](http://throwtheswitch.org)