英文教程1: unity+cmock基础篇
- 教程 http://www.electronvector.com/blog/add-unit-tests-to-your-current-project-with-ceedling
- 配套源码 https://github.com/ElectronVector/add-ceedling-to-existing-project
设置:treat_externs:
:cmock:
:mock_prefix: mock_
:when_no_prototypes: :warn
:enforce_strict_ordering: TRUE
:plugins:
- :ignore
- :callback
:treat_as:
uint8: HEX8
uint16: HEX16
uint32: UINT32
int8: INT8
bool: UINT8
:includes:
- <stdbool.h>
- <stdint.h>
:treat_externs: :include # Now the extern-ed functions will be mocked.
网友评论