ci: run all tests with twister
Run the application unit tests and the driver tests with a single twister call and update the documentation accordingly. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
a1fff4ee6f
commit
2a7473db80
@@ -1,13 +1,26 @@
|
||||
Unit Tests
|
||||
==========
|
||||
|
||||
Core functions of the firmware are covered by unit-tests (located in ``tests`` directory). Build
|
||||
and run the tests with the following command:
|
||||
Core functions of the firmware are covered by unit tests based on the Zephyr ztest framework. The
|
||||
tests are located in the ``tests`` directory:
|
||||
|
||||
- ``tests/app``: Unit tests of the application (charger, DC/DC control, load output, etc.)
|
||||
- ``tests/drivers``: Tests of the drivers in this repository
|
||||
|
||||
All tests are run on ``native_sim`` with emulated drivers using twister:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
cd tests
|
||||
west build -p -b native_posix -t run
|
||||
west twister -T tests --integration
|
||||
|
||||
The driver tests are additionally built (but not run) for some of the boards to ensure that the
|
||||
drivers compile for all supported MCUs.
|
||||
|
||||
The firmware can be built for all boards and board revisions in the same way:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
west twister -T app --integration
|
||||
|
||||
|
||||
Conformance testing
|
||||
|
||||
Reference in New Issue
Block a user