关于
C 语言的 Mock 和 Stub 生成器。
开发工具实测星标增长
- 24小时
- 0
- 7天
- +1
- 15天
- +3
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文CMock 
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
Your first step is to get yourself a copy of CMock. There are a number of ways to do this:
If you're using Ceedling, there is no need to install CMock. It will handle it for you.
The simplest way is to grab it off github. The Github method looks something like this:
git clone --recursive https://github.com/throwtheswitch/cmock.git
You can also grab the
zipfile from github. If you do this, you'll also need to grab yourself a copy of Unity and CException, because github unfortunately doesn't bake dependencies into the zip files.
Contributing to this Project
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 grab its self-testing dependencies, then run its self-tests:
> cd cmock
> bundle install # Ensures you have all RubyGems needed
> cd test
> rake # Run all CMock self tests
Before working on this project, you're going to want to read our guidelines on contributing.
API Documentation
- Not sure what you're doing?
- Interested in our MIT license?
- Are there examples?
- They are all in /examples
- Any other resources to check out?
- Definitely! Check out our developer portal on ThrowTheSwitch.org
探索相关项目
加载中…