Sustaingineering / Pump-Firmware

Particle Electron and ESP32 firmware that collects data from sensors and sends it via peer-to-peer LoRa and Particle GSM. The data is recorded on a micro SD card with timestamps.
3 stars 2 forks source link

Creating Testing Framework for Integration Test #103

Closed jack5661 closed 3 years ago

jack5661 commented 3 years ago

Goal: Create centralized integration tester/test suite. We don't want to have multiple projects testing each individual module.

jack5661 commented 3 years ago

Some helpful documents: https://docs.platformio.org/en/latest/plus/unit-testing.html

jack5661 commented 3 years ago

SD Card Tests:

Can you have the test cases in a separate file???

jack5661 commented 3 years ago

Cannot have test cases in separate files in "test". Test cases need to be included in each file with its own setup()/loop().

Solution: Have a separate folder to hold test cases "test_cases"