Repository navigation
test(engine): 补充 HUTB 改动的自动化测试 - #49
Closed
Dame-time-0034 wants to merge 1 commit into
Closed
Dame-time-0034 wants to merge 1 commit into
Dame-time-0034 wants to merge 1 commit into
Conversation
Dame-time-0034
force-pushed
the
ci/hutb-automation-tests
branch
2 times, most recently
from
November 24, 2026 13:06
8e2062d to
a89e0fd
Compare
- 新增 HutbAutomationTests.cpp:SetupAttachment 的早退/自挂接/成环/ 已 AttachTo 等分支,以及 BlueprintGeneratedClass::IsAsset 的 CLASS_NewerVersionExists、transient、CDO 判定 - Linux CI 默认过滤条件加入 System.Engine.Hutb 与 System.Engine.Attachment
Dame-time-0034
force-pushed
the
ci/hutb-automation-tests
branch
from
November 24, 2026 13:20
a89e0fd to
8e320ad
Compare
Member
|
不要使用每次push来触发测试,这样关注的人都会收到不必要的邮件,先要在自己环境上测试通过,在打开PR,然后也是用手动方式(workflow_dispatch)进行触发。已分配了相应权限。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动内容
补齐 engine 的测试覆盖:此前 Linux CI 只跑 Core 的基础用例(21 个),
HUTB 对引擎的定制改动没有任何自动化验证。
新增用例(
Engine/Source/Runtime/Engine/Private/Tests/HutbAutomationTests.cpp)System.Engine.Hutb.SceneComponent.SetupAttachmentSystem.Engine.Hutb.BlueprintGeneratedClass.IsAssetCLASS_NewerVersionExists、RF_Transient、RF_ClassDefaultObject均不视为资源;CI 调整
Linux workflow 默认测试过滤条件追加:
其中
System.Engine.Hutb为本次新增的 HUTB 用例,System.Engine.Attachment为引擎自带的完整挂接测试(本次改动的上游功能基线),用于覆盖 AttachTo /
Detach / 层级变换等路径。
验证
由 PR 触发的 Linux CI 完成:编译引擎 → 运行自动化测试 → 解析报告。
备注
SetupAttachment的非法调用路径会触发 ensure,测试中用AddExpectedError显式声明期望的错误日志,避免自动化框架将其判定为失败。