The latest development version of this page may be more current than this released 2.7.5 version.

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 subsys/testsuite/ztest/Kconfig:24

Included via Kconfig:8Kconfig.zephyr:44subsys/Kconfig:61subsys/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.)