status-desktop/libs/StatusQ/tests
Stefan 16b866ccbd chore(CPP): Enhance type safety using phantom types
Important changes:

- Converted the easy to mix strings to named types as phantom types
- Renamed `AccountDto`s to `MultiAccount` to better match the status-go
domain knowledge.
- Renamed MultiAccount to ChatOrWalletAccount to better match its multi
purpose and don't confuse with the MultiAccount domain knowledge.
- Remove libs/CMakeLists.txt

Note: Tried to use the fluent::NamedType but it doesn't work with
nlohmann_json, gave up finding why. Therefore I extracted only
the needed functionality for the simple types we use.

Updates: #6321
2022-07-19 16:56:06 +02:00
..
TestHelpers chore(CPP): foundation for user onboarding 2022-07-07 23:23:09 +02:00
qml/StatusQ/TestHelpers chore(CPP): Basic project configuration setup using Qt6 2022-06-30 12:16:33 +02:00
CMakeLists.txt chore(CPP): Enhance type safety using phantom types 2022-07-19 16:56:06 +02:00
main.cpp chore(CPP): Basic project configuration setup using Qt6 2022-06-30 12:16:33 +02:00
readme.md chore(CPP): Basic project configuration setup using Qt6 2022-06-30 12:16:33 +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