status-desktop/ui/StatusQ/tests
Michał Cieślak e8a78e21b8 StatusQ(SubmodelProxyModel): Submodel type fixed
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
2024-04-24 11:24:13 +02: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 feat(wallet) skip picking flags in the random emoji picker function 2024-03-20 11:56:03 +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 feat(StatusQ/TestHelpers): Add method to test model removing items and emiting layoutChanged 2024-04-12 11:05:08 +02:00
CMakeLists.txt feat(StatusQ/ConcatModel): Proper handling of source models layout change 2024-04-12 11:05:08 +02: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 feat(StatusQ/ConcatModel): Proper handling of source models layout change 2024-04-12 11:05:08 +02:00
tst_LeftJoinModel.cpp feat(StatusQ/LeftJoinModel): Add possibility to explicitly define roles to be joined 2024-04-05 14:58:06 +02:00
tst_MovableModel.cpp fix(StatusQ): Don't emit layoutChanged on source model reset in MovableModel 2024-03-07 22:07:49 +02: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 StatusQ(SubmodelProxyModel): Submodel type fixed 2024-04-24 11:24:13 +02:00
tst_SumAggregator.cpp chore(StatusQ): Generic TestModel excluded to a separate file 2024-01-05 13:34:45 +01:00
tst_WritableProxyModel.cpp feat(WritableProxyModel): Add syncedRemoval flag to allow source to remove edited rows 2024-03-11 20:58:55 +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