Greetings,
I have set up some tests using the ZTest environment based on the test sample in ..\v3.0.2\zephyr\tests\bluetooth\adv\. for my custom project which has custom boards that has been deployed on this HW and is working as expected for 2 years. The custom boards were created using the "Create a new board" feature of the nRF Connect VS Code Extension (from v2.5.2 version of the SDK). I have also followed the file and project configuration of the sample test in my custom application and also looked up all relevant documentation and asked tha same question to the Nordic AI for help.
When running the tests with either twister command or the west command as prompted by the documentation the sample test code runs as expected but the integration test setup (ble initiliazation as performed in the sample bluetooth adv test) for my custom project fails with the following error:
Working directory: c:\ncs\feel_v2_fw\feel_v2_fw SDK: nRF Connect SDK v3.0.2 Toolchain: nRF Connect SDK Toolchain v3.0.1 PS C:\ncs\feel_v2_fw\feel_v2_fw> python C:\ncs\v3.0.2\zephyr\scripts\twister -T . -p feel_v2_prod INFO - Using Ninja.. INFO - Zephyr version: v4.0.99-ncs1-2 INFO - Using 'zephyr' toolchain. ERROR - integration_platforms in tests/integration/protocols/ble/sample.testing.ztest - unrecognized platform - feel_v2_pre_evt_v1_0_0 PS C:\ncs\feel_v2_fw\feel_v2_fw> cd tests/integration/protocols/ble PS C:\ncs\feel_v2_fw\feel_v2_fw\tests\integration\protocols\ble> python C:\ncs\v3.0.2\zephyr\scripts\twister -T . -p feel_v2_prod INFO - Using Ninja.. INFO - Zephyr version: v4.0.99-ncs1-2 INFO - Using 'zephyr' toolchain. ERROR - integration_platforms in sample.testing.ztest - unrecognized platform - feel_v2_pre_evt_v1_0_0 PS C:\ncs\feel_v2_fw\feel_v2_fw\tests\integration\protocols\ble> python C:\ncs\v3.0.2\zephyr\scripts\twister -T . -p feel_v2_prod Renaming output directory to C:\ncs\feel_v2_fw\feel_v2_fw\tests\integration\protocols\ble\twister-out.1 INFO - Using Ninja.. INFO - Zephyr version: v4.0.99-ncs1-2 INFO - Using 'zephyr' toolchain. ERROR - integration_platforms in sample.testing.ztest - unrecognized platform - feel_v2_pre_evt_v1_0_0
where feel_v2_pre_evt_v1_0_0 & feel_v2_prod are two of the custom HW boards that my application is used on. Even if ommit specifiyng the board in the twister command I get the same results.

Below are the files included in the tests directory of my custom application for your review:
main.c:
////////////////////////////////////////////////////////////////////////////////
// Includes.
//
#include <zephyr/ztest.h>
#include "ble.h"
////////////////////////////////////////////////////////////////////////////////
// Function definitions.
//
ZTEST_SUITE(ble_tests, NULL, NULL, NULL, NULL, NULL);
ZTEST(ble_tests, test_ble_init, NULL)
{
zassert_true(ble_init(BLE_CONNECTED), NULL);
}
CMakeLists.txt:
cmake_minimum_required(VERSION 3.20.0)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(feel_v2_fw_tests)
# Add test sources
FILE(GLOB app_sources src/*.c)
target_sources(app PRIVATE ${app_sources})
# Add include directories
target_include_directories(app PRIVATE ../../include)
prj.conf:
CONFIG_ZTEST=y
testcase.yml:
tests:
# section.subsection
sample.testing.ztest:
build_only: true
platform_allow:
- feel_v2_pre_evt_v1_0_0
- feel_v2_ppg_v1_eda_v2
- feel_v2_prod
tags: feel_v2_fw_tests
slow: true
timeout: 360
integration_platforms:
- feel_v2_pre_evt_v1_0_0
- feel_v2_ppg_v1_eda_v2
- feel_v2_prod
Could you provide some help on why this error is being produced? Do I have to setup my custom boards differently o be recognized by the ZTest framework or twister?
Thank you in advance!
Best,
Stavros

