Questions tagged [cmock]

`CMock` is a module/object mocking framework for `C` projects. It generates dummy modules that conform to the interface specified in a header file. This allows `API`s to be proven out and exercised before committing to an underlying implementation.

CMock is a module/object mocking framework for C projects. It generates dummy modules that conform to the interface specified in a header file. This allows APIs to be proven out and exercised before committing to an underlying implementation.

34 questions
0
votes
1 answer

eliminating mocked file dependencies

We are mocking our code but we are having difficulties eliminating the dependency of other files the mocked file includes due to the mocked header including the original header which includes several other files. The error we are getting below: In…
0
votes
1 answer

using cmock to mock a function that is a windows CALLBACK

I am having a problem with a case where i have created a C function that is passed to another library as a callback, so it uses CALLBACK notation. this is using VS2015. VOID CALLBACK TheCallback(void) i am unit testing some code using unity and…
scirdan
  • 59
  • 7
0
votes
1 answer

CMock - Multiple definitions

I am starting to work in test driven C development. I used CMock to generate my mock classes by running commands like: ruby cmock.rb ../../../src/util.h My current package structure is: app/root | bin | *.* | build | *.* |- cmake …
isuPatches
  • 6,384
  • 2
  • 22
  • 30
0
votes
1 answer

Automatic C/C++ mock generation for XCTest - CMock/OCMock?

I want to develop using C & C++ using XCode 5. I particularly like the integration of XCTest and Xcode and the CI capability that you get by using OSX Server. I want to have a mocking framework, and ideally one where the mocks are automatically…
John
  • 10,837
  • 17
  • 78
  • 141
1 2
3