Skip to content

Commit

Permalink
doc: twister: test-config: enhance test config
Browse files Browse the repository at this point in the history
update twister document on how to use test config

Signed-off-by: Hake Huang <hake.huang@oss.nxp.com>
  • Loading branch information
hakehuang authored and MaureenHelm committed Apr 6, 2023
1 parent 1c6a853 commit 148c0e1
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions doc/develop/test/twister.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1066,6 +1066,53 @@ And example test level configuration::
- arch.interrupt
- boards.*


Combined configuration
======================

To mix the Platform and level confgiuration, you can take an example as below:

And example platforms plus level configuration::

platforms:
override_default_platforms: true
default_platforms:
- frdm_k64f
levels:
- name: smoke
description: >
A plan to be used verifying basic zephyr features.
- name: unit
description: >
A plan to be used verifying unit test.
- name: integration
description: >
A plan to be used verifying integration.
- name: acceptance
description: >
A plan to be used verifying acceptance.
- name: system
description: >
A plan to be used verifying system.
- name: regression
description: >
A plan to be used verifying regression.


To run with above test_config.yaml file, only default_paltforms with given test level
test cases will run.

.. tabs::

.. group-tab:: Linux

.. code-block:: bash
scripts/twister --test-config=<path to>/test_config.yaml
-T tests --level="smoke"
Running in Tests in Random Order
********************************
Enable ZTEST framework's :kconfig:option:`CONFIG_ZTEST_SHUFFLE` config option to
Expand Down

0 comments on commit 148c0e1

Please sign in to comment.