I am trying to test a file saving system and would like to be able to restart the ESP32 inside of my tests, without having the program counter go back to the top of my program.
In psuedo code I would like something like this:
saver.save("STRING","PATH");
ESP.reset();
assert_equals(saver.load("PATH"),"STRING);
Is this possible using the Unity test library of the PlatformIO? If not, are there any ready to use alternatives I can employ?
I am using an esp32 with the Arduino framework.