Setup a KF Testsuite
A KF testsuite can be executed when building a Foundation Library or an Add-On library, and usually extends the tests written for the default library testsuite to verify the behavior of this library when its APIs are exposed by a Kernel.
A KF testsuite 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 Testsuite
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 Testsuite structure shall be similar to the following figure:
All the projects will be built automatically in the right order based on their dependencies.
KF Testsuite Options
It is possible to configure the same options defined by Testsuite Options for the KF testsuite,
by using the prefix
microej.kf.testsuite.properties instead of