zephyr/samples/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
..
audio/sof samples/subsys/audio/sof: use -fstrict-overflow for SOF 2022-01-07 10:46:14 -05:00
canbus drivers: can: remove DT_CHOSEN_ZEPHYR_CANBUS_LABEL macro 2021-11-09 11:19:50 +01:00
console
cpp
debug samples: debug/gdbstub: update instructions to run 2021-11-30 15:24:00 -05:00
display samples: exclude platform stm32f769i_disco 2022-01-05 14:59:58 -05:00
edac
fs samples: exclude platform stm32f769i_disco 2022-01-05 14:59:58 -05:00
ipc tests: fix typos and misnamed platforms 2021-12-17 12:24:37 -05:00
logging samples: logging: Add v2 logging support for sys-t sample. 2022-01-05 14:41:51 +01:00
lorawan/class_a
mgmt mcumgr: kconfig: Have OS_MGMT_TASKSTAT default to n 2022-01-04 11:54:28 +01:00
modbus samples: modbus: tcp_gateway: use default arduino header UART 2022-01-10 09:45:42 -06:00
nvs storage/flash_map: Add FLASH_AREA_DEVICE macro 2021-11-06 21:37:47 -04:00
pm/device_pm pm: device_runtime: Return possible error on enable 2021-12-14 19:23:05 -05:00
portability samples: fix wrong extra_args definitions 2022-01-04 17:15:06 -05:00
settings
shell lib: getopt: rework and extend getopt library 2022-01-06 21:26:59 +01:00
task_wdt
testsuite ztest: Update ztest with more powerful testing APIs 2022-01-11 11:47:30 +01:00
tracing tests: tracing.osawareness.openocd cleanup 2021-10-13 06:22:44 -04:00
usb samples: fix wrong extra_args definitions 2022-01-04 17:15:06 -05:00
video
subsys.rst