zephyr/tests/subsys
Yuval Peress ab1caef8c3 ztest: Update ztest with more powerful testing APIs
1. Test suites in prior ztest serve no purpose other than logical
ordering of tests into a named-group. Move the construct of setup and
teardown into the test suite and away from individual tests.
Additionally, add the constructs of before/after to the test suites.
This model more closely resembels other testing frameworks such as gTest
and Junit.
2. Test can be added to a suite by using ZTEST() or ZTEST_F() where _F
stands for fixture. In the case where _F is used, the argument `this`
will be provided with the type `struct suite_name##_fixture*`. Again,
this models other modern testing frameworks and allows the test to
directly access the already set up data related to the test suite.
3. Add the concept of test rules (from Junit). Rules are similar to the
before/after functions of the test suites but are global and run on all
suites. An example of a test rule can be to check that nothing was
logged to ERROR. The rule can cause the test to fail if anything was
logged to ERROR during an integration test. Another example would be a
rule that verifies that tests ran within some defined timeout.

Signed-off-by: Yuval Peress <peress@google.com>
2022-01-11 11:47:30 +01:00
..
canbus tests: canbus: isotp: implementation: switch to DEVICE_DT_GET() 2022-01-10 11:24:51 +01:00
cpp coredump: add support for RISC-V 2021-12-08 08:54:32 -05:00
debug arch: riscv: ARCH_EXCEPT macro 2022-01-01 07:38:20 -05:00
dfu cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
edac kernel: mem_domain: add/remove partition funcs to return errors 2021-11-22 12:45:22 -05:00
fs fs: fat_fs: Set FS_MOUNT_FLAG_USE_DISK_ACCESS on mount 2021-12-06 08:08:26 -05:00
ipc/ipc_service ipc: ipc_service: Add support for multiple instances 2021-11-04 18:03:16 +01:00
jwt tests: fix typos and misnamed platforms 2021-12-17 12:24:37 -05:00
logging ztest: Update ztest with more powerful testing APIs 2022-01-11 11:47:30 +01:00
mgmt/ec_host_cmd cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
modbus cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
openthread cmake: use find_package() instead of literal include in tests and samples 2021-11-01 10:33:09 -04:00
pm tests: pm: policy_api: test policy behavior 2022-01-11 10:46:20 +01:00
portability cmsis_rtos_v1: fix thread instances management. 2021-09-09 12:01:06 -04:00
settings cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
shell cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
storage tests: fix typos and misnamed platforms 2021-12-17 12:24:37 -05:00
tracing/tracing_api tests: subsys: Adding testcases to check trace API 2021-09-05 07:25:34 -04:00
usb usb: rework to use macro STRUCT_SECTION_FOREACH 2021-12-10 07:22:15 -06:00