I want to setup project and add possibility to test it with GoogleTest.
1.I’ve installed GoogleTest library in PIO Home.
2.I’ve created new project - Board: Arduino Uno and Framework: Arduino
3.I’ve created file test.cpp in test/native folder and I added: #include “gtest/gtest.h”
4. This is how platformio.ini looks:
platform = atmelavr
board = uno
framework = arduino
When I run test below is the output:
I don’t know how to add Gtest library to compilation process. What’s going wrong here? Any suggestions? I am new to embedded development and unit tests. So, any explanation is more than welcome.