zephyr/tests/subsys/logging
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
..
log_api ztest: Update ztest with more powerful testing APIs 2022-01-11 11:47:30 +01:00
log_backend_fs cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
log_benchmark tests: logging: log_benchmark: Prevent flushing logs by ztest 2021-11-20 11:58:40 -05:00
log_core test: logging: improve test coverage for logging subsystem 2021-09-27 10:19:49 -04:00
log_core_additional tests: logging: adjust the structure of logging test cases 2021-11-15 10:17:25 +01:00
log_immediate cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
log_list cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
log_msg cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
log_msg2 tests: subsys: logging: revert #40848 2022-01-07 07:58:43 -06:00
log_output logging: Cleanup in log_instance 2021-12-21 09:36:09 +01:00