diff --git a/platformio.ini b/platformio.ini index 99a5883e4..018c83ccf 100644 --- a/platformio.ini +++ b/platformio.ini @@ -200,6 +200,7 @@ build_flags = ; [env:native] platform = native +extra_scripts = build_flags = -DARDUINOJSON_ENABLE_ARDUINO_STRING=1 -DEMSESP_STANDALONE -DEMSESP_TEST @@ -233,11 +234,12 @@ lib_deps = ; unit tests ; The code is in ./test/test_api.* -; 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 +; 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 re-run and capture the output between "START - CUT HERE" and "END - CUT HERE" into the test_api.h file [env:native-test] platform = native +extra_scripts = test_build_src = true build_flags = -DARDUINOJSON_ENABLE_ARDUINO_STRING=1