-
Notifications
You must be signed in to change notification settings - Fork 1
CMockery 是 Google 发布的用于 C 单元测试的一个轻量级的框架。它很小巧,对其他开源包没有依赖,对被测试代码侵入性小。CMockery 的源代码行数不到 3K,阅读一下 will_return 和 mock 的源代码就一目了然了1. 免费且开源,Google 提供技术支持; 2. 轻量级的框架,使测试更加快速简单; 3. 避免使用复杂的编译器特性,对老版本的编译器来讲,兼容性好; 4. 并不强制要求待测代码必须依赖 C99 标准,这一特性对许多嵌入式系统的开发很有用。
License
wuzhl2018/Cmockery-
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
For information about how to use the cmockery unit testing framework see doc/index.html. COMPILING --------- To compile the cmockery library and example applications run ./configure followed by make. On Windows from the command line run vsvars.bat then cd into the windows subdirectory of this project and run nmake. This code has been tested on Linux (Ubuntu) and Windows using VC++7 and VC++8.
About
CMockery 是 Google 发布的用于 C 单元测试的一个轻量级的框架。它很小巧,对其他开源包没有依赖,对被测试代码侵入性小。CMockery 的源代码行数不到 3K,阅读一下 will_return 和 mock 的源代码就一目了然了1. 免费且开源,Google 提供技术支持; 2. 轻量级的框架,使测试更加快速简单; 3. 避免使用复杂的编译器特性,对老版本的编译器来讲,兼容性好; 4. 并不强制要求待测代码必须依赖 C99 标准,这一特性对许多嵌入式系统的开发很有用。
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published