mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-26 06:21:15 +00:00
e8a78e21b8
There was inconsistency in qvariant type of submodels depending if it was initial call for a given row (creating proxy) or further calls (returning cached object). It led to subtle issues in views - view was reporting type errors and failing assigning submodels properly when used with submodel proxy with already initialized and cached proxy submodels. Closes: #14507
Readme
Developer instructions
CMake
cd ./tests/
cmake -B ./build/ -S .
cmake --build ./build/
ctest --test-dir ./build/
QtCreator
- Open the
./tests/CMakeLists.txt
- Choose a QT kit to run the tests
- Set
%{sourceDir}/tests
as Working Directory for the TestStatusQ target - In the Test Results panel choose Run All Tests or just run the TestStatusQ target
TODO
- TestHelpers library
- Consolidate and integrate with https://github.com/status-im/desktop-ui-tests
- Separate projects per scope: TestControls, TestComponents