CMock

(β˜… 834)

Mock/stub generator for C

  • .gitattributes
  • .gitignore
  • .gitmodules
  • cmock.gemspec
  • Gemfile
  • LICENSE.txt
  • meson.build
  • README.md

πŸš€ Installation Guide

1. Get the code
git clone https://github.com/ThrowTheSwitch/CMock

Downloads the entire project code from GitHub to your computer.

cd CMock

Moves into the project folder you just downloaded.

2. Ruby

Easy Recommended
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Ruby Ruby is required to use the bundle command.
> bundle install # Ensures you have all RubyGems needed

Installs the Ruby libraries listed in the Gemfile.

βœ… If bundle install finishes without errors, continue with the run command from the README (e.g. rails server).

Pulled directly from this repo's README.

3. Make

Medium
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Make Usually pre-installed on Linux/macOS. On Windows, install separately (e.g. via MSYS2 or WSL).
cd examples/make_example

This project's files live in a subfolder, so move into it first.

make

Compiles the code based on the generated build configuration to produce an executable.

βœ… If it finishes without errors, it worked. Try running the generated executable directly.
// repository documentation