Skip to content

adbancroft/ArduinoNativeFake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arduino Native Fake

Unit Tests

What is this?

It's an extension to ArduinoFake that mocks out enough functionality to run the Speeduino unit tests using the Platform IO 'native' platform.

It mocks all methods of

  • Print
  • Stream
  • Serial
  • Function
  • EEPROM

It is missing:

  • Wire
  • Client
  • SPI

Rationale (Why?)

When FakeIt attempts to execute an unmocked method, the program fails with a cryptic error. So it was easier to fully mock each object rather than trial and error on each method for the Speeduino unit test suite.

It might be useful to others, hence a separate project.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published