UCSolarCarTeam / Epsilon-Embedded-Software

4 stars 1 forks source link

Add CMock to the Embedded Repo #152

Closed bill-luu closed 4 years ago

bill-luu commented 4 years ago

CMock is a mock generator that lets us spoof headers and functions that we aren't testing.

This PR introduces it to the embedded repo, and makes an example test (SetContactorsTest.c) in the AuxBMS unit tests.

Don't worry about the actual content of the tests in SetContactorsTask.c - that's a later problem. This PR is just a proof of concept on how to use the cmock expects and the like.

bill-luu commented 4 years ago

To get the submodules, you will need to run git submodule update --init