feat: add unit tests for core modules and protocol integration tests#1046
feat: add unit tests for core modules and protocol integration tests#1046deepin-wm wants to merge 3 commits into
Conversation
There was a problem hiding this comment.
Sorry @deepin-wm, you have reached your weekly rate limit of 500000 diff characters.
Please try again later or upgrade to continue using Sourcery
|
Skipping CI for Draft Pull Request. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: deepin-wm The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
74f4dcb to
9630b44
Compare
|
TAG Bot New tag: 0.8.13 |
4057820 to
f2479ee
Compare
Add testability support and unit tests for treeland core modules: - CMakePresets: add excludeLabel for testability - lockscreen: add primaryOutputName() getter - output: make constrainToValidArea public static - xresource: add splitXResourceLine public static - xsettings: add testMode constructor and expose protected methods - backlight: add basePath parameter for test injection - greeterproxy: add testMode constructor, virtual methods, and null guards - rootsurfacecontainer, shellhandler, helper, workspace: add TODO(unit-test) - surfacewrapper: add TODO(unit-test) comment - Add 14 test directories covering core modules
f2479ee to
2532dd9
Compare
Qt signals cannot be declared virtual — MOC generates non-virtual implementations, so MockGreeterProxy::switchUser() override caused undefined behavior (SEGFAULT in test_lockscreen). - Remove virtual from GreeterProxy::switchUser() signal declaration - Remove switchUserCallCount and switchUser() override from MockGreeterProxy - Replace mock counter checks with QSignalSpy on GreeterProxy::switchUser
Use SurfaceContainer(QQuickItem*) constructor to create a parent container, avoiding the SurfaceContainer(SurfaceContainer*) path that calls ensureQmlContext() with a null parent chain. Also value-initialize WallpaperWorkspaceConfig in test_wallpaperconfig to silence -Werror=maybe-uninitialized on the Deepin deb build.
fe2c332 to
ac9a02b
Compare
|
TAG Bot New tag: 0.8.14 |
Replaces closed PR #1040 with the complete unit test suite including CI fixes.