Skip to content

Commit

Permalink
🪲 :fail_on_unexpected_calls options now insists on required `:ignor…
Browse files Browse the repository at this point in the history
…e plugin` (#376)
  • Loading branch information
mvandervoord committed Mar 23, 2024
1 parent 597a6d8 commit 001bbec
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,18 @@ a test-centered build manager for unit testing C code.
Getting Started
===============

If you're using Ceedling, there is no need to install CMock. It will handle it for you.
For everyone else, the simplest way is to grab it off github. You can also download it
as a zip if you prefer. The Github method looks something like this:
Your first step is to get yourself a copy of CMock. There are a number of ways to do this:

1. If you're using Ceedling, there is no need to install CMock. It will handle it for you.

2. The simplest way is to grab it off github. The Github method looks something like this:

> git clone --recursive https://github.com/throwtheswitch/cmock.git
3. You can also grab the `zip` file from github. If you do this, you'll also need to grab yourself a
copy of Unity and CException, because github unfortunately doesn't bake dependencies into the zip
files.

Contributing to this Project
============================

Expand All @@ -41,7 +47,7 @@ API Documentation

* Not sure what you're doing?
* [View docs/CMock_Summary.md](docs/CMock_Summary.md)
* Interested in our MIT-style license?
* Interested in our MIT license?
* [View docs/license.txt](LICENSE.txt)
* Are there examples?
* They are all in [/examples](examples/)
Expand Down
3 changes: 3 additions & 0 deletions lib/cmock_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ def initialize(options = nil)

options[:plugins].compact!
options[:plugins].map!(&:to_sym)

raise 'The :ignore plugin is required to disable :fail_on_unexpected_calls' if (!options[:plugins].include? :ignore) && (!options[:fail_on_unexpected_calls])

@options = options

treat_as_map = standard_treat_as_map # .clone
Expand Down

0 comments on commit 001bbec

Please sign in to comment.