zephyr/subsys/testsuite
Jeremy Bettis 027e19fe1f ztest: Don't clear test stats before running suite
test_main can call ztest_run_all multiple times. For example
tests/bluetooth/host/keys/bt_keys_get_addr/src/main.c does so.  If the
first call skips some tests and then they run in the second call,
everything is fine. However if they passed or failed in the first run
and skipped in the second run, then the test output (json, xml, and
printed summary) show the test as skipped even though it ran.

The solution is to not clear the test stats.

__ztest_init_unit_test_result_for_suite was added in commit
996c8457d7 by nashif.

Signed-off-by: Jeremy Bettis <jbettis@google.com>
2025-01-29 15:12:51 +01:00
..
arch unit_testing: Correct one comment refering to native_posix 2024-08-16 09:21:18 +01:00
boards/unit_testing/unit_testing boards: Allow llvm toolchain for unit tests 2025-01-24 08:38:55 +01:00
busy_sim testsuite: busy_sim: Add alarm cancelation to stop function 2024-08-07 19:04:04 -04:00
coverage testsuite: coverage: fix arm64 build with gcov enabled 2024-08-13 14:57:50 +02:00
include/zephyr
soc
ztest ztest: Don't clear test stats before running suite 2025-01-29 15:12:51 +01:00
CMakeLists.txt testsuite: coverage: fix typo in the CMakeLists.txt 2024-11-01 13:54:14 -05:00
Kconfig tests: CONFIG_TEST_USERSPACE selects CONFIG_USERSPACE 2024-11-18 19:30:50 -05:00
Kconfig.defconfig