Options for test coverage in platformio.ini
@@ -15,18 +15,25 @@ default_envs = native
[env:native]
platform = native
test_transport = custom
-
test_build_project_src = true
build_type = debug
build_flags =
-I inc
-I test
+ -lgcov
+ --coverage
+ -fprofile-arcs
+
+extra_scripts =
+ ../test/unit_test_script.py
+
; Uncomment this line to activate Unit Test Debug
; ------------------------------------------------
; -D UNIT_TEST_DEBUG
+
; Uncomment and fill the value to debug required unit test directory
; (e.g: "debug_test = memory_allocator")
; ------------------------------------------------
