Skip to content

jpcornil-git/ayab-gtest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ayab-gtest

Overview

Blinker example illustrating usage of gtest with no/minimal operational code impact that could be applied to ayab-firmware project

  • Based on dependency injection using interfaces
  • Applied to all objects requiring unit tests (Led and Blinker here) and the hardware abstraction layer (HAL)
    • All (arduino) platform calls are made thru HAL that is replaced by a mocked implementation during tests
  • No dependencies to 3rd party libraries (gtest installed thru platformio, own arduino mock, ...)
  • Cooperative scheduling architecture including an "async" Led implementation

Setup

Install platformio on your machine and update platformio.ini to match your hardware

Build application:

$ pio run

or (build and upload):

$ pio run /upload

Run gtest:

$ pio test -e native

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published