Hi,
Spent quite a few time trying to set up first integration test.
Please update the documentation here : Middleware Integration Tests - CUBA Platform. Developer’s Manual.
appPropertiesFiles = Arrays.asList(
// List the files defined in your web.xml
// in appPropertiesConfig context parameter of the core module
"sales-app.properties",
// Add this file which is located in CUBA and defines some properties
// specifically for test environment. You can replace it with your own
// or add another one in the end.
"test-app.properties");
This will not yield a working test container. To make it work “cuba-app.properties” should be added as it is specified in the integration tests of the new Sales sample project.
And cuba-app.properties file is not in core web.xml so the comment “List the files defined in your web.xml appPropertiesConfig context parameter of the core module” should be clarified/completed.
EDIT : below what works.
appPropertiesFiles = Arrays.asList(
// List the files defined in your web.xml
// in appPropertiesConfig context parameter of the core module
"cuba-app.properties",
"classpath:com/busy/app/app.properties",
// Add this file which is located in CUBA and defines some properties
// specifically for test environment. You can replace it with your own
// or add another one in the end.
"test-app.properties");
With this code test container loads ok , and properties files are correctly found and loaded.
Mike