zephyr/tests/ztest
Ming Shao 77e1e39cff ztest: add test summary after all suites finish running
Add test summary after all test suites finish running.
The summary can be one-line or verbose, which is configured
with CONFIG_ZTEST_VERBOSE_SUMMARY. The one-line summary covers
overall suite stats. The verbose summary covers each test
function within the suite besides the one-line summary.

The new ztest output ultimately go through the printk. If
printk go through the logging subsystem, there may be log
messages dropped. And if log_panic is invoked, log messages
can be flushed in a mess. So several explicit log flush
are used when printing summary to ensure no content is lost
and content is in good shape.

Some macros are shared between old and new ztests. Such as
TC_START_PRINT and TC_END_PRINT. The are defined accordingly.

Signed-off-by: Ming Shao <ming.shao@intel.com>
2022-08-11 09:01:12 -04:00
..
automain testing: add zephyr/ prefix to testing include path 2022-06-29 06:04:32 -04:00
base ztest: allow asserts anywhere 2022-08-09 13:30:15 -04:00
busy_sim testing: add zephyr/ prefix to testing include path 2022-06-29 06:04:32 -04:00
custom_output testing: add zephyr/ prefix to testing include path 2022-06-29 06:04:32 -04:00
error_hook tests: ztests: error_hook: Enable assert test mode 2022-08-10 14:32:36 +02:00
mock_fff testing: add zephyr/ prefix to testing include path 2022-06-29 06:04:32 -04:00
register test: fix more legacy #include paths 2022-08-02 16:41:41 +01:00
summary ztest: add test summary after all suites finish running 2022-08-11 09:01:12 -04:00
ztress test: fix more legacy #include paths 2022-08-02 16:41:41 +01:00