From 8762f9c64a5803d56218a8c4ef16e260b9d88aa6 Mon Sep 17 00:00:00 2001 From: proddy Date: Thu, 19 Sep 2024 18:37:21 +0200 Subject: [PATCH] updated text on how to run the unit tests --- platformio.ini | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/platformio.ini b/platformio.ini index 44306203e..bad56e7d2 100644 --- a/platformio.ini +++ b/platformio.ini @@ -239,9 +239,10 @@ lib_ldf_mode = off lib_ignore = Module EMS-ESP-Modules ; unit tests -; pio run -e native-test -t exec -; works on Linux, Windows, and MacOS -; to update the test results, compile with -DEMSESP_UNITY_CREATE, run and capture the output and then paste this into the test_api.cpp file +; The code is in test/test_api.h/cpp +; to run use `pio run -e native-test -t exec`. All tests should PASS. +; to update the test results, compile with -DEMSESP_UNITY_CREATE by uncommenting the line below +; then run and capture the output between "START - CUT HERE" and "END - CUT HERE" into the test_api.h file [env:native-test] platform = native test_build_src = true