Add an option to reset gcov counters before running tests. This ensures that only code lines triggered by test itself are counted in the coverage report and all the board initialization code and pre-test bootstrap is not counted. This is useful when, for example, you are testing code that is also executed during bootup Test Plan: west build -p always -b qemu_x86_64 tests/ztest/base/ -- \ -DCONFIG_COVERAGE=y -DCONFIG_COVERAGE_GCOV=y -DCONFIG_COVERAGE_DUMP=y \ -DCONFIG_ZTEST_COVERAGE_RESET_BEFORE_TESTS=y ninja -Cbuild run | tee log.log Signed-off-by: Roman Studenikin <srv@meta.com> |
||
|---|---|---|
| .. | ||
| include/zephyr | ||
| src | ||
| unittest/include/zephyr/arch | ||
| CMakeLists.txt | ||
| Kconfig | ||