29 lines
743 B
Cheetah
29 lines
743 B
Cheetah
/*
|
|
* test_system.cpp -- Your system tests go here.
|
|
*
|
|
* This file is YOURS. Anvil will never overwrite it.
|
|
* The weather station example tests are in test_weather.cpp.
|
|
*
|
|
* System tests use SimHal and Tmp36Sim to exercise real application
|
|
* logic against simulated hardware. See test_weather.cpp for examples.
|
|
*/
|
|
|
|
#include <gtest/gtest.h>
|
|
|
|
#include "mock_arduino.h"
|
|
#include "hal.h"
|
|
#include "sim_hal.h"
|
|
#include "tmp36_sim.h"
|
|
#include "{{PROJECT_NAME}}_app.h"
|
|
|
|
// Example: add your own system tests below
|
|
// TEST(MySystemTests, DescribeWhatItTests) {
|
|
// mock_arduino_reset();
|
|
// SimHal sim;
|
|
// Tmp36Sim sensor(25.0f, 0.5f);
|
|
//
|
|
// WeatherApp app(&sim, &sensor);
|
|
// app.begin();
|
|
// // ... your test logic ...
|
|
// }
|