status-desktop/ui/StatusQ/tests
Michał Cieślak e51667911d StatusQ: MovableModel proxy for setting custom order over source model
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
2024-01-22 16:36:41 +01:00
..
TestComponents chore(StatusQ): Qml unit tests file names unified/simplified 2023-12-19 10:41:42 +01:00
TestControls chore(StatusQ): Qml unit tests file names unified/simplified 2023-12-19 10:41:42 +01:00
TestCore fix(StatusQ): FastExpressionSorter's test fixed for mac 2024-01-11 13:35:05 +01:00
TestUtils chore(StatusQ): Qml unit tests file names unified/simplified 2023-12-19 10:41:42 +01:00
qml/StatusQ/TestHelpers tests(general): refactor tests 2022-09-21 18:20:09 +02:00
src/TestHelpers StatusQ: SnapshotModel testing utility 2024-01-22 16:36:41 +01:00
CMakeLists.txt StatusQ: MovableModel proxy for setting custom order over source model 2024-01-22 16:36:41 +01:00
main.cpp chore(StatusQ): ListModelWrapper excluded to a separate file 2024-01-05 13:34:45 +01:00
readme.md tests(general): refactor tests 2022-09-21 18:20:09 +02:00
tst_Aggregator.cpp chore(StatusQ): Generic TestModel excluded to a separate file 2024-01-05 13:34:45 +01:00
tst_ConcatModel.cpp chore(StatusQ): ListModelWrapper excluded to a separate file 2024-01-05 13:34:45 +01:00
tst_LeftJoinModel.cpp chore(StatusQ): Generic TestModel excluded to a separate file 2024-01-05 13:34:45 +01:00
tst_MovableModel.cpp StatusQ: MovableModel proxy for setting custom order over source model 2024-01-22 16:36:41 +01:00
tst_RolesRenamingModel.cpp chore(StatusQ): Generic TestModel excluded to a separate file 2024-01-05 13:34:45 +01:00
tst_SingleRoleAggregator.cpp chore(StatusQ): Generic TestModel excluded to a separate file 2024-01-05 13:34:45 +01:00
tst_SubmodelProxyModel.cpp chore(StatusQ): ListModelWrapper excluded to a separate file 2024-01-05 13:34:45 +01:00
tst_SumAggregator.cpp chore(StatusQ): Generic TestModel excluded to a separate file 2024-01-05 13:34:45 +01:00
tst_WritableProxyModel.cpp fix: Updates based on comments 2024-01-09 20:20:04 +02:00

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