Features:
- Multi unit test example - see mutest_led.cpp file. It has two modules as real modules and others mocked. See the test_led.cpp for the same test with all modules mocked
- Arduino_test hookup, providing check that we do not write on input or un-initialized pins.
- Class mock generation: mocks are generated for both classes. The Led class mocks is used in test_main.cpp
Features:
- Use the Serial-fake object to test the serial communication
- Uses variable args
- Tests and demonstrate how we get fail for pinwrite on uninitialized port ( been there done that - debugging hardware for software bug).
- Demonstrate how to provide common sources for all tests.
- Demonstrate how to manually provide mocked methods, for example if you want to do some extra simulation or so.