Thanks to visit codestin.com
Credit goes to github.com

Skip to content

CMockery 是 Google 发布的用于 C 单元测试的一个轻量级的框架。它很小巧,对其他开源包没有依赖,对被测试代码侵入性小。CMockery 的源代码行数不到 3K,阅读一下 will_return 和 mock 的源代码就一目了然了1. 免费且开源,Google 提供技术支持; 2. 轻量级的框架,使测试更加快速简单; 3. 避免使用复杂的编译器特性,对老版本的编译器来讲,兼容性好; 4. 并不强制要求待测代码必须依赖 C99 标准,这一特性对许多嵌入式系统的开发很有用。

License

Notifications You must be signed in to change notification settings

wuzhl2018/Cmockery-

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

No packages published

Contributors 2

  •  
  •