mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 08:18:39 +00:00
Add first unittests #497
No reviewers
Labels
No labels
Android
Bug
Build system
Design suggestion
Doc
Needs design review
Needs rebase
Stage
UX
Up for grabs
Upstream
Wallet
duplicate
enhancement
good first issue
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin-core/gui-qml!497
Loading…
Reference in a new issue
No description provided.
Delete branch "unittest"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This adds an initial unittest against the bitcoinamount module. This is the simplest c++ module to test so its an easy first target. I think the Qt test framework is the best fit for the project and eventually I imagine GMock will be needed to mock out portions of bitcoin interfaces as well as more complex modules get tested. These changes update the CMake definitions and add a BUILD_APP_TESTS option to toggle building of the unittests.
A new ci workflow is added as well to run the unittests (and eventually other testing that we have).
ACK
16e86dddbd@hebasto can you give your opinion on the CMAKE toggle here
Squashed the ci fixes
I introduced a small qml test as well. We will use Qtest to test the c++ modules as well as the qml
tACK 236141e on WSL Unbuntu 24.04.3
The binaries build without issues and the test returned "Passed"
Also the additions of the qml modules dependencies is helpful
From
enable_testingdocs: