Lines Matching +full:twister +full:- +full:tests

51    .. zephyr-app-commands::
53 :gen-args: -DCONFIG_COVERAGE=y -DCONFIG_COVERAGE_DUMP=y
58 the emulator with :kbd:`Ctrl-A X` for this to complete after the coverage dump
61 .. code-block:: console
63 ninja -Cbuild run | tee log.log
67 .. code-block:: console
69 ninja -Cbuild run | tee log.log
74 $ python3 scripts/gen_gcov_files.py -i log.log
80 $ find $ZEPHYR_SDK_INSTALL_DIR -iregex ".*gcov"
84 $ mkdir -p gcov_report
88 …$ gcovr -r $ZEPHYR_BASE . --html -o gcov_report/coverage.html --html-details --gcov-executable <gc…
108 .. zephyr-app-commands::
109 :zephyr-app: samples/hello_world
110 :gen-args: -DCONFIG_COVERAGE=y
111 :host-os: unix
116 .. code-block:: console
120 lcov --capture --directory ./ --output-file lcov.info -q --rc lcov_branch_coverage=1
121 …genhtml lcov.info --output-directory lcov_html -q --ignore-errors source --branch-coverage --highl…
130 Coverage reports using Twister
133 Zephyr's :ref:`twister script <twister_script>` can automatically
134 generate a coverage report from the tests which were executed.
135 You just need to invoke it with the ``--coverage`` command line option.
139 $ twister --coverage -p qemu_x86 -T tests/kernel
143 $ twister --coverage -p native_sim -T tests/bluetooth
145 which will produce ``twister-out/coverage/index.html`` report as well as
146 the coverage data collected by ``gcovr`` tool in ``twister-out/coverage.json``.
148 Other reports might be chosen with ``--coverage-tool`` and ``--coverage-formats``
151 The process differs for unit tests, which are built with the host
154 $ twister --coverage -p unit_testing -T tests/unit
156 which produces a report in the same location as non-unit testing.
164 Twister looks at the environment variable ``ZEPHYR_TOOLCHAIN_VARIANT``
166 default for the Twister ``--gcov-tool`` argument default:
168 +-----------+-----------------------+
169 | Toolchain | ``--gcov-tool`` value |
170 +-----------+-----------------------+
172 +-----------+-----------------------+
173 | llvm | ``llvm-cov gcov`` |
174 +-----------+-----------------------+
176 +-----------+-----------------------+