Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

graial/ArduinoFake-cpputest

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

ArduinoFake with cpputest

Minimal example demonstrating CppuTest using ArduinoFake & CMake:

to run:

  • mkdir test/build && cd test/build
  • cmake ..
  • cmake --build .
  • ./first_test

if you need to rebuild the blink object, you can run g++ -c src/blink.cpp -o test/objs/blink.o -D UNIT_TEST -I test/build/_deps/arduinofake-src/src/

The example currently fails with 'fakeit::UnexpectedMethodCallException' because it is apparently trying to call loop() from fakeit rather than src/blink.cpp

About

Arduino mocking made easy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 62.0%
  • CMake 38.0%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.