e51667911d
Proxy decorating source mode with additional method move(from, to, count) similar to that available in ListModel. The custom order is stored within a proxy, not altering the original model. May be useful whenever UI needs to allow user to set custom order. Temporary state can be held in the proxy, and send to the backend when changes are accepted. Closes: #12686 |
||
---|---|---|
.. | ||
TestComponents | ||
TestControls | ||
TestCore | ||
TestUtils | ||
qml/StatusQ/TestHelpers | ||
src/TestHelpers | ||
CMakeLists.txt | ||
main.cpp | ||
readme.md | ||
tst_Aggregator.cpp | ||
tst_ConcatModel.cpp | ||
tst_LeftJoinModel.cpp | ||
tst_MovableModel.cpp | ||
tst_RolesRenamingModel.cpp | ||
tst_SingleRoleAggregator.cpp | ||
tst_SubmodelProxyModel.cpp | ||
tst_SumAggregator.cpp | ||
tst_WritableProxyModel.cpp |
readme.md
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