Configure project for code coverage.
This commit is contained in:
@@ -11,10 +11,19 @@ set(EXTRA_COMPONENT_DIRS "../")
|
||||
set(COMPONENTS main)
|
||||
|
||||
# Include ESP-IDF project build system
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
# include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
|
||||
file(TO_NATIVE_PATH "$ENV{IDF_PATH}/tools/cmake/project.cmake" _project_path)
|
||||
|
||||
# Inject the test tag into the build
|
||||
add_compile_definitions(RELAY_CHN_UNITY_TEST_GROUP_TAG=\"$ENV{RELAY_CHN_UNITY_TEST_GROUP_TAG}\")
|
||||
|
||||
include(${_project_path})
|
||||
|
||||
# Define the name of this project
|
||||
project(relay_chn_test)
|
||||
project(relay_chn_test)
|
||||
|
||||
file(TO_NATIVE_PATH "${CMAKE_CURRENT_BINARY_DIR}/coverage_report" _coverage_path)
|
||||
|
||||
idf_create_coverage_report(${_coverage_path})
|
||||
idf_clean_coverage_report(${_coverage_path})
|
||||
Reference in New Issue
Block a user