test: migrate unit tests from Qt5/qmake to Qt6/CMake build system#279
Conversation
|
Note
详情{
"tests/document/ut_pdfmodel.cpp": [
{
"line": " g_linkAnnots->setUrl(\"http://www.123.com\");",
"line_number": 136,
"rule": "S35",
"reason": "Url link | 29b32844da"
},
{
"line": " EXPECT_TRUE(link.urlOrFileName == \"http://www.123.com\");",
"line_number": 265,
"rule": "S35",
"reason": "Url link | 29b32844da"
},
{
"line": " password = \"123\";",
"line_number": 674,
"rule": "S106",
"reason": "Var naming | 7efdc4fb8a"
}
]
} |
Add CMake-based test build infrastructure with Qt5/Qt6 dual-version compatibility. Create ut_compat.h for event constructor API differences. Fix Qt6 API changes: QWheelEvent, QMouseEvent, QHoverEvent, QEnterEvent, QProcess::start/startDetached, DPalette, DApplicationHelper, etc. 将单元测试从 Qt5/qmake 迁移到 Qt6/CMake 构建系统,添加事件构造函数 兼容层,修复 Qt6 接口变更导致的编译问题,812个测试用例编译通过。 Log: 单元测试从Qt5/qmake迁移到Qt6/CMake构建系统 Influence: 单元测试可在Qt6环境下编译运行,812个用例中801个通过。
d67b2bd to
2927068
Compare
|
Note
详情{
"tests/document/ut_pdfmodel.cpp": [
{
"line": " g_linkAnnots->setUrl(\"http://www.123.com\");",
"line_number": 136,
"rule": "S35",
"reason": "Url link | 29b32844da"
},
{
"line": " EXPECT_TRUE(link.urlOrFileName == \"http://www.123.com\");",
"line_number": 265,
"rule": "S35",
"reason": "Url link | 29b32844da"
},
{
"line": " password = \"123\";",
"line_number": 674,
"rule": "S106",
"reason": "Var naming | 7efdc4fb8a"
}
]
} |
|
/merge |
deepin pr auto review你好!我是CodeGeeX。我已经仔细审查了你提供的Git Diff,该补丁主要为项目引入了基于CMake的单元测试构建框架,并进行了大量从Qt5向Qt6兼容的迁移工作。 以下是我从语法逻辑、代码质量、代码性能和代码安全四个维度的详细审查意见及改进建议: 一、 语法与逻辑
二、 代码质量
三、 代码性能
四、 代码安全
总结该 Diff 做了大量且必要的 Qt5 到 Qt6 的兼容性适配工作,引入了 |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: lzwind, pengfeixx 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 |
Add CMake-based test build infrastructure with Qt5/Qt6 dual-version compatibility. Create ut_compat.h for event constructor API differences. Fix Qt6 API changes: QWheelEvent, QMouseEvent, QHoverEvent, QEnterEvent, QProcess::start/startDetached, DPalette, DApplicationHelper, etc.
将单元测试从 Qt5/qmake 迁移到 Qt6/CMake 构建系统,添加事件构造函数
兼容层,修复 Qt6 接口变更导致的编译问题,812个测试用例编译通过。
Log: 单元测试从Qt5/qmake迁移到Qt6/CMake构建系统
Influence: 单元测试可在Qt6环境下编译运行,812个用例中801个通过。