zephyr/tests/ztest/base
Yuval Peress 84dfb8edf8 ztest: allow asserts anywhere
Updates the ztest_test_fail() function to allow failures in setup.
When executed, a failed assert will fail every test in the suite owning
the setup function. This was verified by adding a suite which asserts
in the setup function and has a test that should pass. During
exeuction, ztest marks the test as failing.

In order to verify exection I also added 2 new APIs:
- ZTEST_EXPECT_FAIL(suite_name, test_name)
- ZTEST_EXPECT_SKIP(suite_name, test_name)

Signed-off-by: Yuval Peress <peress@google.com>
2022-08-09 13:30:15 -04:00
..
src ztest: allow asserts anywhere 2022-08-09 13:30:15 -04:00
CMakeLists.txt unittest: support ztest_new_api 2022-07-07 18:22:14 +02:00
Kconfig
prj_cpp.conf ztest: Fix incorrect use of `this` as fixture 2022-06-16 16:13:18 -04:00
prj_verbose_0.conf
prj_verbose_1.conf
prj_verbose_2.conf
testcase.yaml ztest: Fix incorrect use of `this` as fixture 2022-06-16 16:13:18 -04:00