zephyr/doc/develop/test
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
..
coverage.rst doc: coverage: fix coverage report generation instruction 2022-05-26 13:14:27 -07:00
fixtures.svg
index.rst docs: ztest: Update documentation for new API 2022-07-15 22:25:41 +00:00
mocking.c test: fix more legacy #include paths 2022-08-02 16:41:41 +01:00
sparse.rst
twister.rst twister: support board@revision in platform filter 2022-08-09 08:45:55 -04:00
ztest.rst ztest: allow asserts anywhere 2022-08-09 13:30:15 -04:00
ztest_deprecated.rst docs: ztest: Update documentation for new API 2022-07-15 22:25:41 +00:00