Setup a KF Test Suite
A KF test suite can be executed when building a Foundation Library or an Add-On library, and usually extends the tests written for the default library test suite to verify the behavior of this library when its APIs are exposed by a Kernel.
A KF test suite is composed of a set of KF tests, each KF test itself is a minimal MicroEJ Multi-Sandbox Firmware composed of a Kernel and zero or more Features.
Enable the Test Suite
In an existing library project:
- Create the
- Edit the
module.ivyand insert the following line within the
<ea:plugin organisation="com.is2t.easyant.plugins" module="microej-kf-testsuite" revision="+" />
Add a KF Test
A KF test is a structured directory placed in the
- Create a new directory for the KF test
- Within this directory, create the sub-projects:
The names of the project directories are free, however MicroEJ suggests the following naming convention, assuming the KF test directory is
[TestName]-kernelfor the Kernel project,
[TestName]-app[1..N]for Feature projects,
[TestName]-firmwarefor the Firmware project.
The KF Test Suite structure shall be similar to the following figure:
All the projects will be built automatically in the right order based on their dependencies.
KF Test Suite Options
It is possible to configure the same options defined by Test Suite Options for the KF test suite,
by using the prefix
microej.kf.testsuite.properties instead of