mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-09-13 05:34:34 +00:00
mention how to update unit tests
This commit is contained in:
+2
-1
@@ -196,9 +196,10 @@ lib_ldf_mode = off
|
|||||||
lib_deps =
|
lib_deps =
|
||||||
|
|
||||||
; unit tests
|
; unit tests
|
||||||
; The test code is in ./test/test_api.cpp and the test_api.h file is created by the native-test-create environment.
|
; The test code is in ./test/test_api.cpp and the test_api.h file is generated by the native-test-create environment.
|
||||||
; to run use `platformio run -e native-test -t exec`. All tests should PASS.
|
; to run use `platformio run -e native-test -t exec`. All tests should PASS.
|
||||||
; tip: use https://jsondiff.com/ to compare the expected and actual responses.
|
; tip: use https://jsondiff.com/ to compare the expected and actual responses.
|
||||||
|
; to update the test output run `python3 scripts/generate_test_api.py`
|
||||||
[env:native-test]
|
[env:native-test]
|
||||||
platform = native
|
platform = native
|
||||||
test_build_src = true
|
test_build_src = true
|
||||||
|
|||||||
Reference in New Issue
Block a user