CONFIG_ZTEST_ASSERT_VERBOSE

Assertion verbosity level

Type: int

Help

Set verbosity level for assertions.
Assertion verbosity levels:
0 Write only file and line for failed assertions
1 Write file, line number, function and reason for failed assertions
2 Log also successful assertions

Direct dependencies

ZTEST

(Includes any dependencies from ifs and menus.)

Default

  • 1

Kconfig definition

At <Zephyr>/subsys/testsuite/ztest/Kconfig:24

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:42<Zephyr>/subsys/Kconfig:61<Zephyr>/subsys/testsuite/Kconfig:6

Menu path: (Top) → Sub Systems and OS Services → Testing → Zephyr testing framework

config ZTEST_ASSERT_VERBOSE
    int "Assertion verbosity level"
    default 1
    depends on ZTEST
    help
      Set verbosity level for assertions.
      Assertion verbosity levels:
      0 Write only file and line for failed assertions
      1 Write file, line number, function and reason for failed assertions
      2 Log also successful assertions

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)