fix(tests) fix UI tests when run from scratch

The STATUSQ_SHADOW_BUILD will allow loading the qml files from sources

The StatusQ dependency helps building StatusQ which is used for C++
helpers

Updates #12639

ghstack-source-id: cbe0a994e7
Pull Request resolved: https://github.com/status-im/status-desktop/pull/12787
This commit is contained in:
Stefan 2023-11-18 18:06:04 +02:00 committed by Stefan Dunca
parent 961babc65a
commit a87a11f92f
2 changed files with 2 additions and 0 deletions

View File

@ -314,6 +314,7 @@ statusq-tests:
-DSTATUSQ_BUILD_SANDBOX=OFF \
-DSTATUSQ_BUILD_SANITY_CHECKER=OFF \
-DSTATUSQ_BUILD_TESTS=ON \
-DSTATUSQ_SHADOW_BUILD=OFF \
-B $(STATUSQ_BUILD_PATH) \
-S $(STATUSQ_SOURCE_PATH) \
$(HANDLE_OUTPUT)

View File

@ -15,6 +15,7 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
add_definitions(-DQUICK_TEST_SOURCE_DIR="${CMAKE_CURRENT_SOURCE_DIR}")
add_executable(${PROJECT_NAME} main.cpp)
add_dependencies(${PROJECT_NAME} StatusQ)
add_test(NAME ${PROJECT_NAME} WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMAND ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME} -input "${CMAKE_CURRENT_SOURCE_DIR}")